Author: markt
Date: Fri Nov 27 18:14:19 2009
New Revision: 884937

URL: http://svn.apache.org/viewvc?rev=884937&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=48288
Supress some warnings
Patch provided by sebb

Modified:
    tomcat/trunk/java/org/apache/el/lang/EvaluationContext.java
    tomcat/trunk/java/org/apache/jasper/el/ELContextWrapper.java

Modified: tomcat/trunk/java/org/apache/el/lang/EvaluationContext.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/el/lang/EvaluationContext.java?rev=884937&r1=884936&r2=884937&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/el/lang/EvaluationContext.java (original)
+++ tomcat/trunk/java/org/apache/el/lang/EvaluationContext.java Fri Nov 27 
18:14:19 2009
@@ -54,6 +54,7 @@
     }
 
     @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 @@
     }
 
     @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);
     }

Modified: tomcat/trunk/java/org/apache/jasper/el/ELContextWrapper.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/el/ELContextWrapper.java?rev=884937&r1=884936&r2=884937&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/el/ELContextWrapper.java (original)
+++ tomcat/trunk/java/org/apache/jasper/el/ELContextWrapper.java Fri Nov 27 
18:14:19 2009
@@ -55,6 +55,7 @@
     }
 
     @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 @@
     }
 
     @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);
     }



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

Reply via email to