Author: hadrian
Date: Fri Dec 17 05:10:36 2010
New Revision: 1050273

URL: http://svn.apache.org/viewvc?rev=1050273&view=rev
Log:
CAMEL-3436. Checkstyle fixes

Modified:
    
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
    
camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpBindingRefTest.java

Modified: 
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java?rev=1050273&r1=1050272&r2=1050273&view=diff
==============================================================================
--- 
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
 (original)
+++ 
camel/trunk/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
 Fri Dec 17 05:10:36 2010
@@ -572,13 +572,13 @@ public class JettyHttpComponent extends 
     
     public JettyHttpBinding getJettyHttpBinding() {
         return jettyHttpBinding;
-       }
+    }
 
-       public void setJettyHttpBinding(JettyHttpBinding jettyHttpBinding) {
+    public void setJettyHttpBinding(JettyHttpBinding jettyHttpBinding) {
         this.jettyHttpBinding = jettyHttpBinding;
-       }
+    }
 
-       public synchronized MBeanContainer getMbContainer() {
+    public synchronized MBeanContainer getMbContainer() {
         // If null, provide the default implementation.
         if (mbContainer == null) {
             MBeanServer mbs = null;
@@ -758,4 +758,4 @@ public class JettyHttpComponent extends 
             mbContainer.stop();
         }
     }
-}
\ No newline at end of file
+}

Modified: 
camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpBindingRefTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpBindingRefTest.java?rev=1050273&r1=1050272&r2=1050273&view=diff
==============================================================================
--- 
camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpBindingRefTest.java
 (original)
+++ 
camel/trunk/components/camel-jetty/src/test/java/org/apache/camel/component/jetty/JettyHttpBindingRefTest.java
 Fri Dec 17 05:10:36 2010
@@ -41,8 +41,7 @@ public class JettyHttpBindingRefTest ext
         try {
             
template.requestBody("jetty:http://localhost:{{port}}/myapp/myotherservice";, 
"Hello World");
             fail();
-        }
-        catch (CamelExecutionException e) {
+        } catch (CamelExecutionException e) {
             assertNotNull(e.getCause());
             assertTrue(e.getCause() instanceof HttpOperationFailedException);
 
@@ -53,7 +52,7 @@ public class JettyHttpBindingRefTest ext
     @Test
     public void testCustomJettyHttpBinding() throws Exception {
         
-       Object out = 
template.requestBody("jetty:http://localhost:{{port}}/myapp/myotherservice?jettyHttpBindingRef=myownbinder";,
 "Hello World");
+        Object out = 
template.requestBody("jetty:http://localhost:{{port}}/myapp/myotherservice?jettyHttpBindingRef=myownbinder";,
 "Hello World");
         assertEquals("Not exactly the message the server returned.", 
context.getTypeConverter().convertTo(String.class, out));
     }
 
@@ -91,9 +90,9 @@ public class JettyHttpBindingRefTest ext
 
             Message answer = exchange.getOut();
 
-               answer.setHeaders(in.getHeaders());
-               answer.setHeader(Exchange.HTTP_RESPONSE_CODE, responseCode);
-               answer.setBody("Not exactly the message the server returned.");
+            answer.setHeaders(in.getHeaders());
+            answer.setHeader(Exchange.HTTP_RESPONSE_CODE, responseCode);
+            answer.setBody("Not exactly the message the server returned.");
         }
     }
     // END SNIPPET: e1


Reply via email to