related to issue 39883: applied new Java formatting
authorAsier Lostalé <asier.lostale@openbravo.com>
Wed, 23 Jan 2019 12:37:54 +0100
changeset 123 4951a69bf1de
parent 122 cefb92057137
child 124 584977f88991
related to issue 39883: applied new Java formatting
src/org/openbravo/userinterface/smartclient/dev/SmartClientConsole.java
src/org/openbravo/userinterface/smartclient/dev/SmartClientReference.java
--- a/src/org/openbravo/userinterface/smartclient/dev/SmartClientConsole.java	Mon Jan 21 16:53:27 2019 +0100
+++ b/src/org/openbravo/userinterface/smartclient/dev/SmartClientConsole.java	Wed Jan 23 12:37:54 2019 +0100
@@ -32,21 +32,24 @@
 public class SmartClientConsole extends HttpSecureAppServlet {
   private static final long serialVersionUID = 1L;
 
-  public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException,
-      ServletException {
+  @Override
+  public void doPost(HttpServletRequest request, HttpServletResponse response)
+      throws IOException, ServletException {
     VariablesSecureApp vars = new VariablesSecureApp(request);
     if (vars.commandIn("DEFAULT")) {
       printPage(response, vars);
-    } else
+    } else {
       pageError(response);
+    }
   }
 
-  void printPage(HttpServletResponse response, VariablesSecureApp vars) throws IOException,
-      ServletException {
+  void printPage(HttpServletResponse response, VariablesSecureApp vars)
+      throws IOException, ServletException {
     String className = this.getClass().getName().toString();
     String xmlTemplateName = className.replaceAll("\\.", "/");
-    if (log4j.isDebugEnabled())
+    if (log4j.isDebugEnabled()) {
       log4j.debug("Output: dataSheet");
+    }
     XmlDocument xmlDocument = null;
     xmlDocument = xmlEngine.readXmlTemplate(xmlTemplateName).createXmlDocument();
 
@@ -58,6 +61,7 @@
     out.close();
   }
 
+  @Override
   public String getServletInfo() {
     return "Servlet SC_Console.";
   } // end of getServletInfo() method
--- a/src/org/openbravo/userinterface/smartclient/dev/SmartClientReference.java	Mon Jan 21 16:53:27 2019 +0100
+++ b/src/org/openbravo/userinterface/smartclient/dev/SmartClientReference.java	Wed Jan 23 12:37:54 2019 +0100
@@ -32,21 +32,24 @@
 public class SmartClientReference extends HttpSecureAppServlet {
   private static final long serialVersionUID = 1L;
 
-  public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException,
-      ServletException {
+  @Override
+  public void doPost(HttpServletRequest request, HttpServletResponse response)
+      throws IOException, ServletException {
     VariablesSecureApp vars = new VariablesSecureApp(request);
     if (vars.commandIn("DEFAULT")) {
       printPage(response, vars);
-    } else
+    } else {
       pageError(response);
+    }
   }
 
-  void printPage(HttpServletResponse response, VariablesSecureApp vars) throws IOException,
-      ServletException {
+  void printPage(HttpServletResponse response, VariablesSecureApp vars)
+      throws IOException, ServletException {
     String className = this.getClass().getName().toString();
     String xmlTemplateName = className.replaceAll("\\.", "/");
-    if (log4j.isDebugEnabled())
+    if (log4j.isDebugEnabled()) {
       log4j.debug("Output: dataSheet");
+    }
     XmlDocument xmlDocument = null;
     xmlDocument = xmlEngine.readXmlTemplate(xmlTemplateName).createXmlDocument();
 
@@ -58,6 +61,7 @@
     out.close();
   }
 
+  @Override
   public String getServletInfo() {
     return "Servlet SC_Reference.";
   } // end of getServletInfo() method