commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1125936 - /incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/SetPropertyAccessor.java
Date Sun, 22 May 2011 12:17:51 GMT
Author: simonetripodi
Date: Sun May 22 12:17:51 2011
New Revision: 1125936

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

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

Modified: incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/SetPropertyAccessor.java
URL: http://svn.apache.org/viewvc/incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/SetPropertyAccessor.java?rev=1125936&r1=1125935&r2=1125936&view=diff
==============================================================================
--- incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/SetPropertyAccessor.java (original)
+++ incubator/ognl/trunk/src/main/java/org/apache/commons/ognl/SetPropertyAccessor.java Sun
May 22 12:17:51 2011
@@ -37,7 +37,7 @@ public class SetPropertyAccessor
     public Object getProperty( Map<String, Object> context, Object target, Object name
)
         throws OgnlException
     {
-        Set set = (Set) target;
+        Set<?> set = (Set<?>) target; // check performed by the invoker
 
         if ( name instanceof String )
         {



Mime
View raw message