kerneltime commented on code in PR #3532:
URL: https://github.com/apache/ozone/pull/3532#discussion_r911276517
##########
hadoop-hdds/config/src/main/java/org/apache/hadoop/hdds/conf/ConfigurationSource.java:
##########
@@ -143,6 +143,18 @@ default Map<String, String> getPropsMatchPrefix(String
keyPrefix) {
return configMap;
}
+ /**
+ * Checks if the property <value> is set.
+ * @param key The property name.
+ * @return true if the value is set else false.
+ */
+ default boolean isConfigured(String key) {
+ String configValue = get(key);
+ if (configValue != null) {
+ return true;
+ }
+ return false;
+ }
Review Comment:
```suggestion
default boolean isConfigured(String key) {
return get(key) != null;
}
```
--
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]