commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r640010 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java
Date Sat, 22 Mar 2008 15:57:43 GMT
Author: oheger
Date: Sat Mar 22 08:57:43 2008
New Revision: 640010

URL: http://svn.apache.org/viewvc?rev=640010&view=rev
Log:
Slightly modified handling of properties with multiple values to be compatible with old HierarchicalConfiguration

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java?rev=640010&r1=640009&r2=640010&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/AbstractHierarchicalConfiguration.java
Sat Mar 22 08:57:43 2008
@@ -177,7 +177,7 @@
                 Object value = nodes.getValue(i, getNodeHandler());
                 if (value != null)
                 {
-                    if (value instanceof Collection)
+                    if (nodes.isAttribute(i) && value instanceof Collection)
                     {
                         // there may be multiple values
                         list.addAll((Collection<?>) value);



Mime
View raw message