You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/02/05 11:16:17 UTC

[5/7] camel git commit: CAMEL-10788 : Fixed checkstyle

CAMEL-10788 : Fixed checkstyle


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/11ba337d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/11ba337d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/11ba337d

Branch: refs/heads/camel-2.18.x
Commit: 11ba337d8b6eae7efbd19c7bedd70edd1a8755bc
Parents: b02bb2f
Author: Ton Swieb <to...@finalist.nl>
Authored: Sat Feb 4 22:35:27 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Feb 5 10:10:21 2017 +0100

----------------------------------------------------------------------
 .../component/jetty/JettyHttpComponent.java     | 23 ++++++++++----------
 .../camel/component/jetty/HandlerTest.java      | 10 ++++-----
 2 files changed, 16 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/11ba337d/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index b7dee08..cd34b7b 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -1261,18 +1261,17 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
     }
 
     protected boolean isHandlerInChain(Handler current, Handler handler) {
-    	
-    	if (handler.equals(current)) {
-    		//Found a match in the chain
-    		return true;
-    	} else if (current instanceof HandlerWrapper) {
-    		//Inspect the next handler in the chain
-    		return isHandlerInChain(((HandlerWrapper) current).getHandler(), handler);
-    	} else {
-    		//End of chain
-    		return false;
-    	}
-    	
+  
+        if (handler.equals(current)) {
+            //Found a match in the chain
+            return true;
+        } else if (current instanceof HandlerWrapper) {
+            //Inspect the next handler in the chain
+            return isHandlerInChain(((HandlerWrapper) current).getHandler(), handler);
+        } else {
+            //End of chain
+            return false;
+        }
     }
     
     protected Server createServer() {

http://git-wip-us.apache.org/repos/asf/camel/blob/11ba337d/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HandlerTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
index 7f309a9..a88c11e 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/HandlerTest.java
@@ -119,11 +119,11 @@ public class HandlerTest extends BaseJettyTest {
                             }
                         });
                 from("jetty:http://localhost:" + port2 + "/endpoint2?handlers=#statisticsHandler2,#statisticsHandler3")
-                		.process(new Processor() {
-                			public void process(Exchange exchange) throws Exception {
-                				exchange.getOut().setBody(htmlResponse);
-                			}
-                		});
+                        .process(new Processor() {
+                            public void process(Exchange exchange) throws Exception {
+                                exchange.getOut().setBody(htmlResponse);
+                            }
+                        });
             };
         };
     }