From: markt Date: Sun, 3 Jan 2010 16:11:27 +0000 (+0000) Subject: Suppress some invalid compiler warnings X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ffbd1acb1bb14a4569fc6f6eba23f9e7a623c66f;p=tomcat7.0 Suppress some invalid compiler warnings git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@895436 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/jasper/compiler/ELNode.java b/java/org/apache/jasper/compiler/ELNode.java index 166e3a4b2..e1d1776ed 100644 --- a/java/org/apache/jasper/compiler/ELNode.java +++ b/java/org/apache/jasper/compiler/ELNode.java @@ -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 } } } diff --git a/java/org/apache/jasper/compiler/Node.java b/java/org/apache/jasper/compiler/Node.java index 1f0852c81..7633540e0 100644 --- a/java/org/apache/jasper/compiler/Node.java +++ b/java/org/apache/jasper/compiler/Node.java @@ -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 } /**