tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1050679 - /tomcat/trunk/java/org/apache/el/lang/ELSupport.java
Date Sat, 18 Dec 2010 17:19:51 GMT
Author: markt
Date: Sat Dec 18 17:19:50 2010
New Revision: 1050679

URL: http://svn.apache.org/viewvc?rev=1050679&view=rev
Log:
Fix remaining warning in o.a.el.lang package

Modified:
    tomcat/trunk/java/org/apache/el/lang/ELSupport.java

Modified: tomcat/trunk/java/org/apache/el/lang/ELSupport.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/ELSupport.java?rev=1050679&r1=1050678&r2=1050679&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/lang/ELSupport.java (original)
+++ tomcat/trunk/java/org/apache/el/lang/ELSupport.java Sat Dec 18 17:19:50 2010
@@ -161,7 +161,12 @@ public class ELSupport {
         }
     }
 
-    public static final Enum<?> coerceToEnum(final Object obj, Class type) {
+    // Going to have have some casts /raw types somewhere so doing it here
+    // keeps them all in one place. There might be a neater / better solution
+    // but I couldn;t find it
+    @SuppressWarnings("unchecked")
+    public static final Enum<?> coerceToEnum(final Object obj,
+            @SuppressWarnings("rawtypes") Class type) {
         if (obj == null || "".equals(obj)) {
             return null;
         }



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


Mime
View raw message