This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit cb66b1fc93d24ef5a781a2709dafb17c24f8bc5e Author: Mark Thomas <ma...@apache.org> AuthorDate: Fri May 14 13:28:13 2021 +0100 Remove unnecessary code. If a tag file uses a named attribute, the TagFileDirectiveVisitor will ensure that an alias is configured. --- java/org/apache/jasper/compiler/Generator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java index b13f80e..771283e 100644 --- a/java/org/apache/jasper/compiler/Generator.java +++ b/java/org/apache/jasper/compiler/Generator.java @@ -3859,8 +3859,9 @@ class Generator { boolean aliasSeen = false; TagVariableInfo[] tagVars = tagInfo.getTagVariableInfos(); for (TagVariableInfo var : tagVars) { - if (var.getNameFromAttribute() != null - && var.getNameGiven() != null) { + // If a tag file uses a named attribute, the TagFileDirectiveVisitor + // will ensure that an alias is configured. + if (var.getNameFromAttribute() != null) { aliasSeen = true; break; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org