You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2016/07/01 10:01:34 UTC

[2/3] camel git commit: Fixed CS

Fixed CS


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

Branch: refs/heads/master
Commit: 65c40512765e2d805948e384455f58bc7c5504da
Parents: dd32693
Author: Andrea Cosentino <an...@gmail.com>
Authored: Fri Jul 1 11:57:12 2016 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Fri Jul 1 12:00:54 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/coap/CoAPProducer.java      | 6 +++---
 .../src/test/java/org/apache/camel/coap/CoAPPingTest.java      | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/65c40512/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPProducer.java b/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPProducer.java
index 0e9ec13..a4a17e1 100644
--- a/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPProducer.java
+++ b/components/camel-coap/src/main/java/org/apache/camel/coap/CoAPProducer.java
@@ -75,7 +75,7 @@ public class CoAPProducer extends DefaultProducer {
             response = client.put(bodyPut, mediaType);
             break;
         case "PING":
-        	pingResponse = client.ping();
+            pingResponse = client.ping();
             break;
         default:
             break;
@@ -89,8 +89,8 @@ public class CoAPProducer extends DefaultProducer {
         }
         
         if (method.equalsIgnoreCase("PING")) {
-        	Message resp = exchange.getOut();
-        	resp.setBody(pingResponse);
+            Message resp = exchange.getOut();
+            resp.setBody(pingResponse);
         }
     }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/65c40512/components/camel-coap/src/test/java/org/apache/camel/coap/CoAPPingTest.java
----------------------------------------------------------------------
diff --git a/components/camel-coap/src/test/java/org/apache/camel/coap/CoAPPingTest.java b/components/camel-coap/src/test/java/org/apache/camel/coap/CoAPPingTest.java
index 9ed98c1..1872951 100644
--- a/components/camel-coap/src/test/java/org/apache/camel/coap/CoAPPingTest.java
+++ b/components/camel-coap/src/test/java/org/apache/camel/coap/CoAPPingTest.java
@@ -50,9 +50,9 @@ public class CoAPPingTest extends CamelTestSupport {
             @Override
             public void configure() throws Exception { 
                 from("coap://localhost:" + PORT + "/TestResource?coapMethod=PING")
-                .to("log:exch")
-                .transform(body().convertTo(Boolean.class))
-                .to("log:exch");
+                    .to("log:exch")
+                    .transform(body().convertTo(Boolean.class))
+                    .to("log:exch");
                 
                 from("direct:start").to("coap://localhost:" + PORT + "/TestResource?coapMethod=PING").to("mock:result");
             }