This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push: new be141fa Remove unnecessary null check identified by SpotBugs be141fa is described below commit be141fa832033096b53931141689d60491863b64 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