[camel] branch master updated: Camel-core: Fixed CS

2020-03-04 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 9bd504e  Camel-core: Fixed CS
9bd504e is described below

commit 9bd504e5990b90cd3f4411eab9ec9c8b09c609c5
Author: Andrea Cosentino 
AuthorDate: Wed Mar 4 15:03:22 2020 +0100

Camel-core: Fixed CS
---
 .../camel/component/bean/BeanExchangeAsReturnTypeNotAllowedTest.java| 2 +-
 .../java/org/apache/camel/component/bean/BeanImplicitMethodTest.java| 2 +-
 .../apache/camel/component/bean/BeanReturnCallableReturnNullTest.java   | 2 +-
 .../java/org/apache/camel/component/bean/BeanReturnCallableTest.java| 2 +-
 .../apache/camel/component/bean/BeanWithAnnotationAndExchangeTest.java  | 2 +-
 .../camel/component/bean/BeanWithExchangeExceptionAnnotationTest.java   | 2 +-
 .../test/java/org/apache/camel/component/bean/BeanWithHeaderTest.java   | 2 +-
 .../component/file/cluster/FileLockClusteredRoutePolicyFactoryTest.java | 2 +-
 .../camel/component/file/cluster/FileLockClusteredRoutePolicyTest.java  | 2 +-
 .../src/test/java/org/apache/camel/impl/DummyLifecycleStrategy.java | 2 +-
 .../src/test/java/org/apache/camel/issues/AdviceWithPolicyTest.java | 2 +-
 .../src/test/java/org/apache/camel/issues/AdviceWithTransactedTest.java | 2 +-
 .../org/apache/camel/issues/TransactedPropertyPlaceholderIssueTest.java | 2 +-
 .../camel-core/src/test/java/org/apache/camel/model/XmlTestSupport.java | 2 +-
 .../camel/processor/BeanRecipientListInterfaceAnnotationTest.java   | 2 +-
 .../java/org/apache/camel/processor/CustomProcessorFactoryTest.java | 2 +-
 .../apache/camel/processor/errorhandler/ErrorHandlerSupportTest.java| 2 +-
 .../processor/exceptionpolicy/DefaultExceptionPolicyStrategyTest.java   | 2 +-
 .../src/test/java/org/apache/camel/reifier/ProcessorReifierTest.java| 2 +-
 19 files changed, 19 insertions(+), 19 deletions(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanExchangeAsReturnTypeNotAllowedTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanExchangeAsReturnTypeNotAllowedTest.java
index 989ac24..ee6f867 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanExchangeAsReturnTypeNotAllowedTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanExchangeAsReturnTypeNotAllowedTest.java
@@ -52,7 +52,7 @@ public class BeanExchangeAsReturnTypeNotAllowedTest extends 
ContextTestSupport {
 return answer;
 }
 
-@Override
+@Override
 protected RouteBuilder createRouteBuilder() throws Exception {
 return new RouteBuilder() {
 public void configure() throws Exception {
diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanImplicitMethodTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanImplicitMethodTest.java
index 1b8c6f6..35f39cd 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanImplicitMethodTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanImplicitMethodTest.java
@@ -51,7 +51,7 @@ public class BeanImplicitMethodTest extends 
ContextTestSupport {
 return answer;
 }
 
-public static class MyBean {
+public static class MyBean {
 
 public Integer intRequest(Integer request) {
 return request;
diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableReturnNullTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableReturnNullTest.java
index c4ed584..3d47bbf 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableReturnNullTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableReturnNullTest.java
@@ -46,7 +46,7 @@ public class BeanReturnCallableReturnNullTest extends 
ContextTestSupport {
 return answer;
 }
 
-@Override
+@Override
 protected RouteBuilder createRouteBuilder() throws Exception {
 return new RouteBuilder() {
 public void configure() throws Exception {
diff --git 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableTest.java
index 8c89aee..67205be 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/component/bean/BeanReturnCallableTest.java
@@ -44,7 +44,7 @@ public class BeanReturnCallableTest extends 
ContextTestSupport {
 return answer;
 }
 
-@Override
+@Override
 protected RouteBuilder createRouteBuilder() throws Exception {
 return new RouteBuilder() {
 public void co

[camel] branch master updated: Camel-Core: Fixed CS

2020-03-05 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 228358a  Camel-Core: Fixed CS
228358a is described below

commit 228358ae4ea76e4ddeafabfe40f9873c7cb16e40
Author: Andrea Cosentino 
AuthorDate: Thu Mar 5 14:07:34 2020 +0100

Camel-Core: Fixed CS
---
 .../processor/onexception/OnExceptionHandledThrowsExceptionTest.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandledThrowsExceptionTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandledThrowsExceptionTest.java
index 14ecfe9..5de82c2 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandledThrowsExceptionTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/processor/onexception/OnExceptionHandledThrowsExceptionTest.java
@@ -45,7 +45,9 @@ public class OnExceptionHandledThrowsExceptionTest extends 
ContextTestSupport {
 @Override
 public void configure() throws Exception {
 onException(IOException.class)
-.handled(e -> { throw new 
IllegalArgumentException("Another 
Forced");}).to("log:foo?showAll=true").to("mock:handled");
+.handled(e -> { 
+throw new IllegalArgumentException("Another 
Forced");
+}).to("log:foo?showAll=true").to("mock:handled");
 
 from("direct:start").throwException(new IOException("Forced"));
 }



[camel] branch master updated: Camel-Core: Fixed CS

2020-02-03 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 7cc386a  Camel-Core: Fixed CS
7cc386a is described below

commit 7cc386ae93ff224cc20ddf32b54d7cfdce3479d4
Author: Andrea Cosentino 
AuthorDate: Mon Feb 3 09:31:02 2020 +0100

Camel-Core: Fixed CS
---
 .../src/test/java/org/apache/camel/impl/DefaultMessageHeaderTest.java| 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultMessageHeaderTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultMessageHeaderTest.java
index 379e9d1..2e90431 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/impl/DefaultMessageHeaderTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/impl/DefaultMessageHeaderTest.java
@@ -17,6 +17,7 @@
 package org.apache.camel.impl;
 
 import junit.framework.TestCase;
+
 import org.apache.camel.CamelContext;
 import org.apache.camel.Message;
 import org.apache.camel.support.DefaultExchange;



[camel] branch master updated: Camel-Core: Fixed CS

2020-05-19 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 56deea6  Camel-Core: Fixed CS
56deea6 is described below

commit 56deea68b09b563545654811fe17223a72cf5137
Author: Andrea Cosentino 
AuthorDate: Tue May 19 09:25:59 2020 +0200

Camel-Core: Fixed CS
---
 .../src/test/java/org/apache/camel/support/AnimalFactory.java| 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/support/AnimalFactory.java 
b/core/camel-core/src/test/java/org/apache/camel/support/AnimalFactory.java
index ad5d1cc..15231f1 100644
--- a/core/camel-core/src/test/java/org/apache/camel/support/AnimalFactory.java
+++ b/core/camel-core/src/test/java/org/apache/camel/support/AnimalFactory.java
@@ -16,7 +16,10 @@
  */
 package org.apache.camel.support;
 
-public class AnimalFactory {
+public final class AnimalFactory {
+
+private AnimalFactory() {
+}
 
 public static Animal createAnimal(String name, boolean dangerous) {
 return new Animal(name, dangerous);



[camel] branch master updated: Camel-Core: Fixed CS

2020-03-13 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 2d7ca2d  Camel-Core: Fixed CS
2d7ca2d is described below

commit 2d7ca2d08302a3a3bda440b848853710d3d0deb7
Author: Andrea Cosentino 
AuthorDate: Fri Mar 13 17:18:31 2020 +0100

Camel-Core: Fixed CS
---
 core/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java 
b/core/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java
index 15ff8c0..a5e1560 100644
--- a/core/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java
+++ b/core/camel-core/src/test/java/org/apache/camel/ContextTestSupport.java
@@ -44,7 +44,7 @@ public abstract class ContextTestSupport extends TestSupport {
 protected volatile ConsumerTemplate consumer;
 protected volatile NotifyBuilder oneExchangeDone;
 private boolean useRouteBuilder = true;
-private boolean useImmutableContext = false;
+private boolean useImmutableContext;
 private Service camelContextService;
 
 /**



[camel] branch master updated: Camel-Core: Fixed CS

2020-03-16 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new 78b1dc0  Camel-Core: Fixed CS
78b1dc0 is described below

commit 78b1dc06372142af7eda5b9e76550bdbbfa47ca8
Author: Andrea Cosentino 
AuthorDate: Mon Mar 16 12:47:45 2020 +0100

Camel-Core: Fixed CS
---
 .../org/apache/camel/support/PropertyBindingSupportConfigurerTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/core/camel-core/src/test/java/org/apache/camel/support/PropertyBindingSupportConfigurerTest.java
 
b/core/camel-core/src/test/java/org/apache/camel/support/PropertyBindingSupportConfigurerTest.java
index 8edf23b..de5cf00 100644
--- 
a/core/camel-core/src/test/java/org/apache/camel/support/PropertyBindingSupportConfigurerTest.java
+++ 
b/core/camel-core/src/test/java/org/apache/camel/support/PropertyBindingSupportConfigurerTest.java
@@ -206,7 +206,7 @@ public class PropertyBindingSupportConfigurerTest extends 
ContextTestSupport {
 @Override
 public boolean configure(CamelContext camelContext, Object target, 
String name, Object value, boolean ignoreCase) {
 name = name.toLowerCase(Locale.US);
-name = name.replaceAll("-","");
+name = name.replaceAll("-", "");
 if (target instanceof Bar) {
 Bar bar = (Bar) target;
 if ("age".equals(name)) {



[camel] branch master updated: Camel-Core: Fixed CS in RestBindingAdvice

2018-11-18 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
 new e490135  Camel-Core: Fixed CS in RestBindingAdvice
e490135 is described below

commit e490135fc7ff4c51743b9b78dc15ee34ae55f435
Author: Andrea Cosentino 
AuthorDate: Mon Nov 19 08:52:29 2018 +0100

Camel-Core: Fixed CS in RestBindingAdvice
---
 .../src/main/java/org/apache/camel/processor/RestBindingAdvice.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/camel-core/src/main/java/org/apache/camel/processor/RestBindingAdvice.java 
b/camel-core/src/main/java/org/apache/camel/processor/RestBindingAdvice.java
index 90fe9d4..3b6cabc 100644
--- a/camel-core/src/main/java/org/apache/camel/processor/RestBindingAdvice.java
+++ b/camel-core/src/main/java/org/apache/camel/processor/RestBindingAdvice.java
@@ -516,7 +516,7 @@ public class RestBindingAdvice implements 
CamelInternalProcessorAdvicehttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept#Directives
 if ("*/*".equals(target)) {
-  return true;
+return true;
 }
 
 boolean isXml = valid.toLowerCase(Locale.ENGLISH).contains("xml");
@@ -534,4 +534,4 @@ public class RestBindingAdvice implements 
CamelInternalProcessorAdvice