You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2021/04/08 16:55:38 UTC
[tomcat] branch master updated: Remove unnecessary code. parent is
always non-null
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
The following commit(s) were added to refs/heads/master by this push:
new aec7797 Remove unnecessary code. parent is always non-null
aec7797 is described below
commit aec77974a09913d1440df5eb26b4aca090afc4c3
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Apr 8 17:54:47 2021 +0100
Remove unnecessary code. parent is always non-null
---
java/org/apache/jasper/compiler/Generator.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/java/org/apache/jasper/compiler/Generator.java b/java/org/apache/jasper/compiler/Generator.java
index e8ffe88..bf25b34 100644
--- a/java/org/apache/jasper/compiler/Generator.java
+++ b/java/org/apache/jasper/compiler/Generator.java
@@ -1104,12 +1104,9 @@ class Generator {
* a Named Attribute (<jsp:attribute>), generate the code to evaluate
* those bodies first.
* <p>
- * If parent is null, simply returns.
+ * {@code parent} is assumed to be non-null
*/
private void prepareParams(Node parent) throws JasperException {
- if (parent == null)
- return;
-
Node.Nodes subelements = parent.getBody();
if (subelements != null) {
for (int i = 0; i < subelements.size(); i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org