rikkarth commented on code in PR #412:
URL: 
https://github.com/apache/commons-configuration/pull/412#discussion_r1590279931


##########
src/main/java/org/apache/commons/configuration2/AbstractConfiguration.java:
##########
@@ -419,6 +419,20 @@ public final boolean containsKey(final String key) {
         }
     }
 
+    /**
+     * {@inheritDoc} This implementation handles synchronization and delegates 
to {@code containsKeyInternal()}.
+     */
+    @Override
+    public final boolean containsValue(final String value) {
+        Objects.requireNonNull(value, "Parameter \"value\" cannot be null");

Review Comment:
   If every configuration can have a different implementation for containsValue 
it means that every configuration must be tested for their (existing) 
implementation of containsValue.
   
   I have tested each abstract configuration implementation and even 
configurations like MapConfiguration (which are extended by other configuration 
types)
   
   This will ensure that containsValue from existing Configuration are tested.
   
   Some Configuration will throw NullPointerException others will return false.



-- 
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]

Reply via email to