commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r802389 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/ConfigurationSourceUtils.java
Date Sat, 08 Aug 2009 15:07:22 GMT
Author: oheger
Date: Sat Aug  8 15:07:21 2009
New Revision: 802389

URL: http://svn.apache.org/viewvc?rev=802389&view=rev
Log:
Fixed a type-safety warning.

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

Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/ConfigurationSourceUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/ConfigurationSourceUtils.java?rev=802389&r1=802388&r2=802389&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/ConfigurationSourceUtils.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/base/ConfigurationSourceUtils.java
Sat Aug  8 15:07:21 2009
@@ -122,7 +122,7 @@
         catch (UnsupportedOperationException uoex)
         {
             Object value = source.getProperty(key);
-            if (value instanceof Collection)
+            if (value instanceof Collection<?>)
             {
                 return ((Collection<?>) value).size();
             }



Mime
View raw message