Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48288
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 27 Nov 2009 18:14:19 +0000 (18:14 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 27 Nov 2009 18:14:19 +0000 (18:14 +0000)
Supress some warnings
Patch provided by sebb

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@884937 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/EvaluationContext.java
java/org/apache/jasper/el/ELContextWrapper.java

index 6924703..f2d62a5 100644 (file)
@@ -54,6 +54,7 @@ public final class EvaluationContext extends ELContext {
     }
 
     @Override
+    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification in super-class
     public Object getContext(Class key) {
         return this.elContext.getContext(key);
     }
@@ -69,6 +70,7 @@ public final class EvaluationContext extends ELContext {
     }
 
     @Override
+    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match specification in super-class
     public void putContext(Class key, Object contextObject) {
         this.elContext.putContext(key, contextObject);
     }
index 80e0a96..d342db0 100644 (file)
@@ -55,6 +55,7 @@ public final class ELContextWrapper extends ELContext {
     }
 
     @Override
+    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
     public Object getContext(Class key) {
         return this.target.getContext(key);
     }
@@ -70,6 +71,7 @@ public final class ELContextWrapper extends ELContext {
     }
 
     @Override
+    @SuppressWarnings("unchecked") // Can't use Class<?> because API needs to match super-class specification
     public void putContext(Class key, Object contextObject) throws NullPointerException {
         this.target.putContext(key, contextObject);
     }