adoroszlai commented on code in PR #8799:
URL: https://github.com/apache/ozone/pull/8799#discussion_r2354373277
##########
hadoop-ozone/multitenancy-ranger/src/main/java/org/apache/hadoop/ozone/om/multitenant/RangerClientMultiTenantAccessController.java:
##########
@@ -81,9 +81,9 @@ public
RangerClientMultiTenantAccessController(ConfigurationSource conf)
// OMMultiTenantManager#checkAndEnableMultiTenancy at this point.
String rangerHttpsAddress = conf.get(OZONE_RANGER_HTTPS_ADDRESS_KEY);
- Preconditions.checkNotNull(rangerHttpsAddress);
+ Objects.requireNonNull(rangerHttpsAddress);
Review Comment:
Partly. `Objects` is JDK built-in, so we should prefer it to any
third-party lib. In this case I made the change because this was the only
usage of guava in the new module.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]