This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit d96e744b3c02b05839e9ad753d4d43c95ff205e7 Author: Mark Thomas <ma...@apache.org> AuthorDate: Wed Mar 31 12:02:34 2021 +0100 Remove unnecessary code --- java/org/apache/jasper/compiler/Generator.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index ff79296..2333063 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -246,13 +246,11 @@ class Generator { @Override public void visit(Node.CustomTag n) throws JasperException { if (n.useTagPlugin()) { - if (n.getAtSTag() != null) { - n.getAtSTag().visit(this); - } + // If a custom tag is configured to use a plug-in + // getAtSTag() and getAtETag() will always be non-null + n.getAtSTag().visit(this); visitBody(n); - if (n.getAtETag() != null) { - n.getAtETag().visit(this); - } + n.getAtETag().visit(this); } else { visitBody(n); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org