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/06/23 11:56:53 UTC
[tomcat] branch 10.0.x updated: Remove unnecessary null check
identified by SpotBugs
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new dfc8671 Remove unnecessary null check identified by SpotBugs
dfc8671 is described below
commit dfc8671cff886f9eaf920844ed8c4e3c168979b1
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Jun 23 12:55:42 2021 +0100
Remove unnecessary null check identified by SpotBugs
---
java/org/apache/jasper/compiler/Compiler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/jasper/compiler/Compiler.java b/java/org/apache/jasper/compiler/Compiler.java
index 054d4d6..7da6055 100644
--- a/java/org/apache/jasper/compiler/Compiler.java
+++ b/java/org/apache/jasper/compiler/Compiler.java
@@ -316,7 +316,7 @@ public abstract class Compiler {
javaEncoding);
}
- if ((ctxt!=null) && ctxt.getOptions().getTrimSpaces().equals(TrimSpacesOption.EXTENDED)) {
+ if (ctxt.getOptions().getTrimSpaces().equals(TrimSpacesOption.EXTENDED)) {
writer = new NewlineReductionServletWriter(new PrintWriter(osw));
} else {
writer = new ServletWriter(new PrintWriter(osw));
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org