tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r895436 - in /tomcat/trunk/java/org/apache/jasper/compiler: ELNode.java Node.java
Date Sun, 03 Jan 2010 16:11:28 GMT
Author: markt
Date: Sun Jan  3 16:11:27 2010
New Revision: 895436

URL: http://svn.apache.org/viewvc?rev=895436&view=rev
Log:
Suppress some invalid compiler warnings

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/ELNode.java
    tomcat/trunk/java/org/apache/jasper/compiler/Node.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/ELNode.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/ELNode.java?rev=895436&r1=895435&r2=895436&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/ELNode.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/ELNode.java Sun Jan  3 16:11:27 2010
@@ -246,13 +246,19 @@
             n.getExpression().visit(this);
         }
 
+        @SuppressWarnings("unused")
         public void visit(Function n) throws JasperException {
+            // NOOP by default
         }
 
+        @SuppressWarnings("unused")
         public void visit(Text n) throws JasperException {
+            // NOOP by default
         }
 
+        @SuppressWarnings("unused")
         public void visit(ELText n) throws JasperException {
+            // NOOP by default
         }
     }
 }

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Node.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Node.java?rev=895436&r1=895435&r2=895436&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Node.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Node.java Sun Jan  3 16:11:27 2010
@@ -2415,7 +2415,9 @@
          * This method provides a place to put actions that are common to all
          * nodes. Override this in the child visitor class if need to.
          */
+        @SuppressWarnings("unused")
         protected void doVisit(Node n) throws JasperException {
+            // NOOP by default
         }
 
         /**



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


Mime
View raw message