You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2011/10/05 17:38:39 UTC
svn commit: r1179268 - /tomcat/trunk/java/org/apache/jasper/JspC.java
Author: kkolinko
Date: Wed Oct 5 15:38:38 2011
New Revision: 1179268
URL: http://svn.apache.org/viewvc?rev=1179268&view=rev
Log:
Resolve "Redundant null check: the variable cannot be null at this location" warning.
The JspC constructor cannot throw a JasperException.
Modified:
tomcat/trunk/java/org/apache/jasper/JspC.java
Modified: tomcat/trunk/java/org/apache/jasper/JspC.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/JspC.java?rev=1179268&r1=1179267&r2=1179268&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/JspC.java (original)
+++ tomcat/trunk/java/org/apache/jasper/JspC.java Wed Oct 5 15:38:38 2011
@@ -250,9 +250,8 @@ public class JspC implements Options {
if (arg.length == 0) {
System.out.println(Localizer.getMessage("jspc.usage"));
} else {
- JspC jspc = null;
+ JspC jspc = new JspC();
try {
- jspc = new JspC();
jspc.setArgs(arg);
if (jspc.helpNeeded) {
System.out.println(Localizer.getMessage("jspc.usage"));
@@ -261,7 +260,7 @@ public class JspC implements Options {
}
} catch (JasperException je) {
System.err.println(je);
- if (jspc != null && jspc.dieLevel != NO_DIE_LEVEL) {
+ if (jspc.dieLevel != NO_DIE_LEVEL) {
System.exit(jspc.dieLevel);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org