tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r897620 - /tomcat/trunk/java/org/apache/el/parser/AstEmpty.java
Date Sun, 10 Jan 2010 11:47:48 GMT
Author: markt
Date: Sun Jan 10 11:47:48 2010
New Revision: 897620

URL: http://svn.apache.org/viewvc?rev=897620&view=rev
Log:
Fix generics warnings

Modified:
    tomcat/trunk/java/org/apache/el/parser/AstEmpty.java

Modified: tomcat/trunk/java/org/apache/el/parser/AstEmpty.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/parser/AstEmpty.java?rev=897620&r1=897619&r2=897620&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/parser/AstEmpty.java (original)
+++ tomcat/trunk/java/org/apache/el/parser/AstEmpty.java Sun Jan 10 11:47:48 2010
@@ -51,10 +51,10 @@
             return Boolean.valueOf(((String) obj).length() == 0);
         } else if (obj instanceof Object[]) {
             return Boolean.valueOf(((Object[]) obj).length == 0);
-        } else if (obj instanceof Collection) {
-            return Boolean.valueOf(((Collection) obj).isEmpty());
-        } else if (obj instanceof Map) {
-            return Boolean.valueOf(((Map) obj).isEmpty());
+        } else if (obj instanceof Collection<?>) {
+            return Boolean.valueOf(((Collection<?>) obj).isEmpty());
+        } else if (obj instanceof Map<?,?>) {
+            return Boolean.valueOf(((Map<?,?>) obj).isEmpty());
         }
         return Boolean.FALSE;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message