camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [7/7] camel git commit: CAMEL-10788 : Fixed checkstyle
Date Sun, 05 Feb 2017 11:16:19 GMT
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/be2097a1
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/be2097a1
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/be2097a1

Branch: refs/heads/camel-2.17.x
Commit: be2097a16447a454e24696331f69eaa19cd4ac04
Parents: 3618b97
Author: Ton Swieb <ton.swieb@finalist.nl>
Authored: Sat Feb 4 22:35:27 2017 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Feb 5 10:10:57 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/be2097a1/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 c5d13ed..c7e5104 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
@@ -1155,18 +1155,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/be2097a1/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);
+                            }
+                        });
             };
         };
     }


Mime
View raw message