rikkarth commented on code in PR #412:
URL:
https://github.com/apache/commons-configuration/pull/412#discussion_r1586341867
##########
src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java:
##########
@@ -455,6 +455,26 @@ protected boolean containsKeyInternal(final String key) {
return getPropertyInternal(key) != null;
}
+ @Override
+ protected boolean containsValueInternal(final String value) {
+ return contains(getKeys(), value);
+ }
+
+ private boolean contains(Iterator<String> keys, final String value) {
+ if (keys.hasNext()) {
+ String nextKey = keys.next();
+ Object valueFromKey = getProperty(nextKey);
+
+ if (valueFromKey.equals(value)) {
+ return true;
Review Comment:
100% agree. Will perform the change.
Thank you.
--
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]