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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to