Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 074B411155 for ; Fri, 11 Jul 2014 19:36:26 +0000 (UTC) Received: (qmail 38936 invoked by uid 500); 11 Jul 2014 19:36:25 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 38860 invoked by uid 500); 11 Jul 2014 19:36:25 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 38851 invoked by uid 99); 11 Jul 2014 19:36:25 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jul 2014 19:36:25 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 95C6883CB79; Fri, 11 Jul 2014 19:36:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Message-Id: <78a284b4ddc04adbb98bd7d0d9e43090@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Fix checkstyle issues Date: Fri, 11 Jul 2014 19:36:25 +0000 (UTC) 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 Authored: Fri Jul 11 15:35:23 2014 -0400 Committer: Daniel Kulp 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();