You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/09/22 15:37:21 UTC
svn commit: r1704623 -
/tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org