cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: Fix checkstyle errors
Date Tue, 25 Mar 2014 15:54:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3225f35c5 -> 70cf49450


Fix checkstyle errors


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/70cf4945
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/70cf4945
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/70cf4945

Branch: refs/heads/master
Commit: 70cf4945007d05db301dff4b335e3c722d544f48
Parents: 3225f35
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue Mar 25 11:54:35 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Mar 25 11:54:35 2014 -0400

----------------------------------------------------------------------
 .../websocket/src/main/java/demo/jaxrs/client/Client.java     | 7 +++++--
 .../src/main/java/demo/jaxrs/client/WebSocketTestClient.java  | 6 ++++--
 2 files changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/70cf4945/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/Client.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/Client.java
b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/Client.java
index 4004e84..dbdc589 100644
--- a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/Client.java
+++ b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/Client.java
@@ -62,7 +62,9 @@ public final class Client {
         client.reset(1);
         System.out.println("Sent PUT request to update customer info");
         String inputData = getStringFromInputStream(Client.class.getResourceAsStream("/update_customer.xml"));
-        client.sendTextMessage("PUT /customerservice/customers\r\nContent-Type: text/xml;
charset=ISO-8859-1\r\n\r\n" + inputData);
+        client.sendTextMessage("PUT /customerservice/customers\r\nContent-Type: text/xml;"
+                               + " charset=ISO-8859-1\r\n\r\n"
+                               + inputData);
         client.await(5);
         responses = client.getReceivedResponses();
         System.out.println(responses.get(0));
@@ -71,7 +73,8 @@ public final class Client {
         client.reset(1);
         System.out.println("Sent POST request to add customer");
         inputData = getStringFromInputStream(Client.class.getResourceAsStream("/add_customer.xml"));
-        client.sendTextMessage("POST /customerservice/customers\r\nContent-Type: text/xml;
charset=ISO-8859-1\r\nAccept: text/xml\r\n\r\n" + inputData);
+        client.sendTextMessage("POST /customerservice/customers\r\nContent-Type: text/xml;
"
+                               + "charset=ISO-8859-1\r\nAccept: text/xml\r\n\r\n" + inputData);
         client.await(5);
         responses = client.getReceivedResponses();
         System.out.println(responses.get(0));

http://git-wip-us.apache.org/repos/asf/cxf/blob/70cf4945/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/WebSocketTestClient.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/WebSocketTestClient.java
b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/WebSocketTestClient.java
index 1d9ad1f..5db967c 100644
--- a/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/WebSocketTestClient.java
+++ b/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/client/WebSocketTestClient.java
@@ -284,11 +284,13 @@ class WebSocketTestClient {
         }
 
         private int length(Object o) {
-            return o instanceof char[] ? ((String)o).length() : (o instanceof byte[] ? ((byte[])o).length
: 0);
+            return o instanceof char[] ? ((String)o).length()
+                : (o instanceof byte[] ? ((byte[])o).length : 0);
         }
 
         private int getchar(Object o, int p) {
-            return 0xff & (o instanceof String ? ((String)o).charAt(p) : (o instanceof
byte[] ? ((byte[])o)[p] : -1));
+            return 0xff & (o instanceof String ? ((String)o).charAt(p)
+                           : (o instanceof byte[] ? ((byte[])o)[p] : -1));
         }
 
         private String gettext(Object o) {


Mime
View raw message