Suppress some invalid compiler warnings
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 3 Jan 2010 16:11:27 +0000 (16:11 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 3 Jan 2010 16:11:27 +0000 (16:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@895436 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/ELNode.java
java/org/apache/jasper/compiler/Node.java

index 166e3a4..e1d1776 100644 (file)
@@ -246,13 +246,19 @@ abstract class ELNode {
             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
         }
     }
 }
index 1f0852c..7633540 100644 (file)
@@ -2415,7 +2415,9 @@ abstract class Node implements TagConstants {
          * 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
         }
 
         /**