commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1125963 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java
Date Sun, 22 May 2011 13:41:54 GMT
Author: simonetripodi
Date: Sun May 22 13:41:54 2011
New Revision: 1125963

URL: http://svn.apache.org/viewvc?rev=1125963&view=rev
Log:
fixed enumeration raw type

Modified:
    incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java?rev=1125963&r1=1125962&r2=1125963&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/OgnlOps.java Sun May 22 13:41:54
2011
@@ -877,7 +877,8 @@ public abstract class OgnlOps
 
         ElementsAccessor elementsAccessor = OgnlRuntime.getElementsAccessor( OgnlRuntime.getTargetClass(
v2 ) );
 
-        for ( Enumeration e = elementsAccessor.getElements( v2 ); e.hasMoreElements(); )
+        // FIXME O(n) is there a better way?!
+        for ( Enumeration<?> e = elementsAccessor.getElements( v2 ); e.hasMoreElements();
)
         {
             Object o = e.nextElement();
 



Mime
View raw message