camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/5] camel git commit: Fixed CS
Date Fri, 29 Apr 2016 06:47:03 GMT
http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
index 7c1381a..3e84922 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsSpringConsumerTest.java
@@ -88,7 +88,7 @@ public class CxfRsSpringConsumerTest extends CamelSpringTestSupport {
     
     private void doTestMappingException(String address) throws Exception {
         HttpGet get = new HttpGet(address);
-        get.addHeader("Accept" , "application/json");
+        get.addHeader("Accept", "application/json");
         CloseableHttpClient httpclient = HttpClientBuilder.create().build();
 
         try {

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/DataFormatProviderTest.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/DataFormatProviderTest.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/DataFormatProviderTest.java
index dcdb23e..b591ce5 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/DataFormatProviderTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/DataFormatProviderTest.java
@@ -95,11 +95,10 @@ public class DataFormatProviderTest extends Assert {
         private String name;
 
         @SuppressWarnings("unused")
-        public Book() {
-
+        Book() {
         }
 
-        public Book(String name) {
+        Book(String name) {
             this.name = name;
         }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsrm/MessageLossSimulator.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsrm/MessageLossSimulator.java
b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsrm/MessageLossSimulator.java
index 76ded1b..c39d610 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsrm/MessageLossSimulator.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/wsrm/MessageLossSimulator.java
@@ -56,6 +56,7 @@ public class MessageLossSimulator extends AbstractPhaseInterceptor<Message>
{
             throw new Fault(t);
         }
     }
+
     public void handleMessage(Message message) throws Fault {
         Object maps =
             RMContextUtils.retrieveMAPs(message, false, true);
@@ -102,7 +103,7 @@ public class MessageLossSimulator extends AbstractPhaseInterceptor<Message>
{
 
         private Message outMessage;
 
-        public WrappedOutputStream(Message m) {
+        WrappedOutputStream(Message m) {
             this.outMessage = m;
         }
 
@@ -120,7 +121,7 @@ public class MessageLossSimulator extends AbstractPhaseInterceptor<Message>
{
 
         @Override
         public void write(int b) throws IOException {
-            // TODO Auto-generated method stub
+            // noop
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCamelHeadersTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCamelHeadersTest.java
b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCamelHeadersTest.java
index f8fd6fb..bd65278 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCamelHeadersTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCamelHeadersTest.java
@@ -106,10 +106,10 @@ public class HttpCamelHeadersTest extends BaseHttpTest {
         return "";
     }
 
-    class MyHeaderValidationHandler extends HeaderValidationHandler {
+    private class MyHeaderValidationHandler extends HeaderValidationHandler {
         private String expectProtocolVersion;
 
-        public MyHeaderValidationHandler(String expectedMethod, String protocolVersion,
+        MyHeaderValidationHandler(String expectedMethod, String protocolVersion,
                                          String responseContent, Map<String, String>
expectedHeaders) {
             super(expectedMethod, null, null, responseContent, expectedHeaders);
             expectProtocolVersion = protocolVersion;

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCompressionTest.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCompressionTest.java
b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCompressionTest.java
index 13d69d8..384fc13 100644
--- a/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCompressionTest.java
+++ b/components/camel-http4/src/test/java/org/apache/camel/component/http4/HttpCompressionTest.java
@@ -141,7 +141,7 @@ public class HttpCompressionTest extends BaseHttpTest {
 
         static class GzipDecompressingEntity extends HttpEntityWrapper {
 
-            public GzipDecompressingEntity(final HttpEntity entity) {
+            GzipDecompressingEntity(final HttpEntity entity) {
                 super(entity);
             }
 
@@ -174,7 +174,7 @@ public class HttpCompressionTest extends BaseHttpTest {
 
         static class GzipCompressingEntity extends HttpEntityWrapper {
 
-            public GzipCompressingEntity(final HttpEntity entity) {
+            GzipCompressingEntity(final HttpEntity entity) {
                 super(entity);
             }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixManagementTest.java
----------------------------------------------------------------------
diff --git a/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixManagementTest.java
b/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixManagementTest.java
index 2272c94..4cb3db9 100644
--- a/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixManagementTest.java
+++ b/components/camel-hystrix/src/test/java/org/apache/camel/component/hystrix/processor/HystrixManagementTest.java
@@ -84,8 +84,8 @@ public class HystrixManagementTest extends CamelTestSupport {
 
         Stream<String> jsons = stream.streamMetrics();
         jsons.forEach(s -> {
-                log.info("JSon: {}", s);
-            });
+            log.info("JSon: {}", s);
+        });
     }
 
     @Override

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
index 1b72680..02a6480 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
@@ -95,7 +95,7 @@ public class QueueReplyManager extends ReplyManagerSupport {
         private DestinationResolver delegate;
         private Destination destination;
 
-        public DestinationResolverDelegate(DestinationResolver delegate) {
+        DestinationResolverDelegate(DestinationResolver delegate) {
             this.delegate = delegate;
         }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/AbstractTransactionTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/AbstractTransactionTest.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/AbstractTransactionTest.java
index 64307cf..6e18c54 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/AbstractTransactionTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/AbstractTransactionTest.java
@@ -60,8 +60,7 @@ public abstract class AbstractTransactionTest extends CamelSpringTestSupport
{
         notify.matchesMockWaitTime();
 
         assertTrue("Expected only 2 calls to process() (1 failure, 1 success) but encountered
"
-                   + getConditionalExceptionProcessor().getCount() + "."
-                   , getConditionalExceptionProcessor().getCount() == 2);
+                   + getConditionalExceptionProcessor().getCount() + ".", getConditionalExceptionProcessor().getCount()
== 2);
     }
 
     protected ConditionalExceptionProcessor getConditionalExceptionProcessor() {

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/QueueToQueueTransactionWithoutDefineTransactionManagerTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/QueueToQueueTransactionWithoutDefineTransactionManagerTest.java
b/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/QueueToQueueTransactionWithoutDefineTransactionManagerTest.java
index 86dfc81..b69a2ee 100644
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/QueueToQueueTransactionWithoutDefineTransactionManagerTest.java
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/tx/QueueToQueueTransactionWithoutDefineTransactionManagerTest.java
@@ -51,8 +51,7 @@ public class QueueToQueueTransactionWithoutDefineTransactionManagerTest
extends
         notify.matchesMockWaitTime();
 
         assertTrue("Expected only 1 calls to process() (1 failure) but encountered "
-                   + getConditionalExceptionProcessor().getCount() + "."
-                   , getConditionalExceptionProcessor().getCount() == 1);
+                   + getConditionalExceptionProcessor().getCount() + ".", getConditionalExceptionProcessor().getCount()
== 1);
     }
     
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ContextCreationTimeoutTest.java
----------------------------------------------------------------------
diff --git a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ContextCreationTimeoutTest.java
b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ContextCreationTimeoutTest.java
index 4c6bc0a..230cc33 100644
--- a/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ContextCreationTimeoutTest.java
+++ b/components/camel-test-blueprint/src/test/java/org/apache/camel/test/blueprint/ContextCreationTimeoutTest.java
@@ -127,12 +127,11 @@ public class ContextCreationTimeoutTest extends Assert {
 
     }
 
-    private static class OverridingTestSupport extends
-            CamelBlueprintTestSupport {
+    private static class OverridingTestSupport extends CamelBlueprintTestSupport {
 
         private final Long timeout;
 
-        public OverridingTestSupport(Long timeout) {
+        OverridingTestSupport(Long timeout) {
             this.timeout = timeout;
         }
 

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-test-karaf/src/main/java/org/apache/camel/test/karaf/AbstractFeatureTest.java
----------------------------------------------------------------------
diff --git a/components/camel-test-karaf/src/main/java/org/apache/camel/test/karaf/AbstractFeatureTest.java
b/components/camel-test-karaf/src/main/java/org/apache/camel/test/karaf/AbstractFeatureTest.java
index e75b278..25979ad 100644
--- a/components/camel-test-karaf/src/main/java/org/apache/camel/test/karaf/AbstractFeatureTest.java
+++ b/components/camel-test-karaf/src/main/java/org/apache/camel/test/karaf/AbstractFeatureTest.java
@@ -75,7 +75,7 @@ import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.logLevel;
 
 public abstract class AbstractFeatureTest {
 
-    static final Long SERVICE_TIMEOUT = 30000L;
+    public static final Long SERVICE_TIMEOUT = 30000L;
     protected static final Logger LOG = LoggerFactory.getLogger(AbstractFeatureTest.class);
 
     @Inject

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootJUnit4ClassRunner.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootJUnit4ClassRunner.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootJUnit4ClassRunner.java
index 1e90282..0370985 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootJUnit4ClassRunner.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringBootJUnit4ClassRunner.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * <p/>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p/>
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

http://git-wip-us.apache.org/repos/asf/camel/blob/5cb6ebf7/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringJUnit4ClassRunner.java
----------------------------------------------------------------------
diff --git a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringJUnit4ClassRunner.java
b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringJUnit4ClassRunner.java
index 0d201ac..c4d2fda 100644
--- a/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringJUnit4ClassRunner.java
+++ b/components/camel-test-spring/src/main/java/org/apache/camel/test/spring/CamelSpringJUnit4ClassRunner.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * <p/>
- * http://www.apache.org/licenses/LICENSE-2.0
- * <p/>
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.


Mime
View raw message