You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by mm...@apache.org on 2006/11/10 09:07:35 UTC

svn commit: r473241 - /incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java

Author: mmao
Date: Fri Nov 10 00:07:35 2006
New Revision: 473241

URL: http://svn.apache.org/viewvc?view=rev&rev=473241
Log:
Fixed the checkstyle errors introduced in the last patch apply

Modified:
    incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java

Modified: incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java?view=diff&rev=473241&r1=473240&r2=473241
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/integration/jca/hello_world_soap_http/src/demo/client/Client.java Fri Nov 10 00:07:35 2006
@@ -20,16 +20,15 @@
 package demo.client;
 
 import java.io.BufferedReader;
-import java.io.InputStreamReader;
 import java.io.IOException;
+import java.io.InputStreamReader;
 import java.net.HttpURLConnection;
 import java.net.MalformedURLException;
 import java.net.URL;
 
 public class Client {
 
-
-    public Client() {
+    protected Client() {
     }
 
     public static void main(String[] args) throws Exception {
@@ -42,10 +41,10 @@
             conn.connect();
 
             BufferedReader in = 
-                new BufferedReader( new InputStreamReader( conn.getInputStream() ) );
+                new BufferedReader(new InputStreamReader(conn.getInputStream()));
             boolean correctReturn = false;
             String response;
-            while ( (response = in.readLine()) != null ) {
+            while ((response = in.readLine()) != null) {
                 if (response.contains("Bonjour")) {
                     System.out.println(" server return: Bonjour");
                     correctReturn = true;