Fix remaining warning in o.a.el.lang package
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 18 Dec 2010 17:19:50 +0000 (17:19 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 18 Dec 2010 17:19:50 +0000 (17:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1050679 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/ELSupport.java

index 41e6177..235b105 100644 (file)
@@ -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;
         }