This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-2.19.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8f7a7d242bc26c296f60333114dac2e18a0d9211
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Feb 13 09:30:03 2018 -0500

    CAMEL-12222: Fixed CS
---
 .../camel/swagger/servlet/RestSwaggerServlet.java  | 26 ++++++++++------------
 1 file changed, 12 insertions(+), 14 deletions(-)

diff --git 
a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
 
b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
index e9bef5d..f78d34d 100644
--- 
a/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
+++ 
b/components/camel-swagger-java/src/main/java/org/apache/camel/swagger/servlet/RestSwaggerServlet.java
@@ -31,7 +31,6 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import io.swagger.jaxrs.config.BeanConfig;
-import org.apache.camel.Exchange;
 import org.apache.camel.impl.DefaultClassResolver;
 import org.apache.camel.spi.ClassResolver;
 import org.apache.camel.spi.RestConfiguration;
@@ -61,18 +60,6 @@ public class RestSwaggerServlet extends HttpServlet {
     private boolean apiContextIdListing;
     private boolean translateContextPath = true;
 
-
-    public boolean isTranslateContextPath() { return translateContextPath; }
-
-    /**
-     * Sets whether the context path of the request should be translated 
(true) or used as-is (false)
-     * Optional, Defaults to true
-     * @param translateContextPath
-     */
-    public void setTranslateContextPath(boolean translateContextPath) { 
this.translateContextPath = translateContextPath; }
-
-
-
     public String getApiContextIdPattern() {
         return apiContextIdPattern;
     }
@@ -100,6 +87,18 @@ public class RestSwaggerServlet extends HttpServlet {
         this.apiContextIdListing = apiContextIdListing;
     }
 
+    public boolean isTranslateContextPath() {
+        return translateContextPath;
+    }
+
+    /**
+     * Sets whether the context path of the request should be translated 
(true) or used as-is (false)
+     * Optional, Defaults to true
+     */
+    public void setTranslateContextPath(boolean translateContextPath) {
+        this.translateContextPath = translateContextPath;
+    }
+
     @Override
     public void init(final ServletConfig config) throws ServletException {
         super.init(config);
@@ -130,7 +129,6 @@ public class RestSwaggerServlet extends HttpServlet {
         if (translate != null) {
             translateContextPath = Boolean.valueOf(translate.toString());
         }
-
     }
 
     @Override

-- 
To stop receiving notification emails like this one, please contact
davscl...@apache.org.

Reply via email to