Author: markt
Date: Tue Sep 22 13:37:17 2015
New Revision: 1704623
URL: http://svn.apache.org/viewvc?rev=1704623&view=rev
Log:
Fix indentation in generated Java code.
Cosmetic issue only. No functional impact.
Modified:
tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
Modified: tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Generator.java?rev=1704623&r1=1704622&r2=1704623&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Generator.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Generator.java Tue Sep 22
13:37:17 2015
@@ -705,22 +705,23 @@ class Generator {
out.printin("public void ");
out.print(serviceMethodName);
out.println("(final javax.servlet.http.HttpServletRequest request,
final javax.servlet.http.HttpServletResponse response)");
- out.println(" throws java.io.IOException,
javax.servlet.ServletException {");
-
out.pushIndent();
+ out.pushIndent();
+ out.printil("throws java.io.IOException,
javax.servlet.ServletException {");
+ out.popIndent();
out.println();
// Method check
if (!pageInfo.isErrorPage()) {
- out.println("final java.lang.String _jspx_method =
request.getMethod();");
- out.print("if (!\"GET\".equals(_jspx_method) &&
!\"POST\".equals(_jspx_method) && !\"HEAD\".equals(_jspx_method) && ");
+ out.printil("final java.lang.String _jspx_method =
request.getMethod();");
+ out.printin("if (!\"GET\".equals(_jspx_method) &&
!\"POST\".equals(_jspx_method) && !\"HEAD\".equals(_jspx_method) && ");
out.println("!javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType()))
{");
out.pushIndent();
-
out.print("response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, ");
+
out.printin("response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, ");
out.println("\"" +
Localizer.getMessage("jsp.error.servlet.invalid.method") + "\");");
- out.println("return;");
+ out.printil("return;");
out.popIndent();
- out.println("}");
+ out.printil("}");
out.println();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]