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:57:00 UTC
[tomcat] branch 9.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 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new d4a127f Remove unnecessary null check identified by SpotBugs
d4a127f is described below
commit d4a127f965b41cfdeca68b966e386daf9652872d
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 f6d641b..9008a63 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