The JspC constructor cannot throw a JasperException.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1179268 13f79535-47bb-0310-9956-
ffa450edef68
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"));
}
} 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);
}
}