You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/07/11 21:36:25 UTC

git commit: Fix checkstyle issues

Repository: cxf
Updated Branches:
  refs/heads/master a4e4ea126 -> 8cd225aa1


Fix checkstyle issues


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

Branch: refs/heads/master
Commit: 8cd225aa1c9f11ebfeb67f515ed004e73fd702c4
Parents: a4e4ea1
Author: Daniel Kulp <dk...@apache.org>
Authored: Fri Jul 11 15:35:23 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Fri Jul 11 15:35:23 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/demo/jms_greeter/server/Server.java        | 6 +++---
 .../customerservice/client/CustomerServiceSpringClient.java  | 4 +++-
 .../customerservice/client/CustomerServiceTester.java        | 8 +++++---
 .../customerservice/server/CustomerServiceSpringServer.java  | 7 +++++--
 4 files changed, 16 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8cd225aa/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/server/Server.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/server/Server.java b/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/server/Server.java
index 04928fd..1c77872 100644
--- a/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/server/Server.java
+++ b/distribution/src/main/release/samples/jms_queue/src/main/java/demo/jms_greeter/server/Server.java
@@ -49,9 +49,9 @@ public class Server {
      * @param cf
      */
     protected void publishEndpoint(Object impl, ConnectionFactory cf) {
-    	EndpointImpl ep = (EndpointImpl)Endpoint.create(impl);
-    	ep.setFeatures(Collections.singletonList(new ConnectionFactoryFeature(cf)));
-    	ep.publish();
+        ep = (EndpointImpl)Endpoint.create(impl);
+        ep.setFeatures(Collections.singletonList(new ConnectionFactoryFeature(cf)));
+        ep.publish();
     }
 
     public void shutdown() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/8cd225aa/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
index 3fe3d87..451e013 100644
--- a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
+++ b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
@@ -23,7 +23,9 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
 /**
  * Starter that initializes the spring context, fetches our test client and then shuts down spring 
  */
-public class CustomerServiceSpringClient {
+public final class CustomerServiceSpringClient {
+    private CustomerServiceSpringClient() {
+    }
 
     public static void main(String args[]) throws Exception {      
         ClassPathXmlApplicationContext context 

http://git-wip-us.apache.org/repos/asf/cxf/blob/8cd225aa/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceTester.java b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
index 2f1fbfe..818992c 100644
--- a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
+++ b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
@@ -21,17 +21,19 @@ package com.example.customerservice.client;
 
 import java.util.List;
 
-import org.junit.Assert;
-
 import com.example.customerservice.Customer;
 import com.example.customerservice.CustomerService;
 import com.example.customerservice.NoSuchCustomerException;
 
+import org.junit.Assert;
+
+
 /**
  * Calls the CustomerService using the proxy created by CXF and does some assertions to make 
  * sure the calls work.
  * 
- * This also shows how typical user code on the client side could look like. Make sure to keep your business code
+ * This also shows how typical user code on the client side 
+ * could look like. Make sure to keep your business code
  * free from spring and cxf dependencies as far as possible.
  */
 public final class CustomerServiceTester {

http://git-wip-us.apache.org/repos/asf/cxf/blob/8cd225aa/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
index c85dda0..f7e4af9 100644
--- a/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
+++ b/distribution/src/main/release/samples/jms_spring_config/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
@@ -23,10 +23,13 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
 /**
  * Starter that initializes the spring context and so also creates the service endpoint.
  */
-public class CustomerServiceSpringServer {
+public final class CustomerServiceSpringServer {
+    private CustomerServiceSpringServer() {
+    }
     
     public static void main(String args[]) throws Exception {
-        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("server-applicationContext.xml");
+        ClassPathXmlApplicationContext ctx
+            = new ClassPathXmlApplicationContext("server-applicationContext.xml");
         System.out.println("Server started. Press any key to shut down.");
         System.in.read();
         ctx.close();