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 b58cc1149894633ff426b1dd993f2745dfc4a0cc Author: Mark Thomas <[email protected]> AuthorDate: Wed Apr 21 09:42:48 2021 +0100 Remove unnecessary code. If useTagPlugin has been set to true, then getAtSTag() and getAtETag() will also have been configured to return non-null values. --- java/org/apache/jasper/compiler/Generator.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index b7ad241..6304797 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -2361,13 +2361,9 @@ class Generator { } private void generateTagPlugin(Node.CustomTag n) throws JasperException { - if (n.getAtSTag() != null) { - n.getAtSTag().visit(this); - } + n.getAtSTag().visit(this); visitBody(n); - if (n.getAtETag() != null) { - n.getAtETag().visit(this); - } + n.getAtETag().visit(this); } private void generateCustomStart(Node.CustomTag n, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
