Fixed the CS errors of camel-core

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4c5ae14a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4c5ae14a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4c5ae14a

Branch: refs/heads/master
Commit: 4c5ae14aeae90d6e7b7244fd689bee50db3369d6
Parents: 4c363a1
Author: Willem Jiang <willem.ji...@gmail.com>
Authored: Wed Nov 12 16:12:36 2014 +0800
Committer: Willem Jiang <willem.ji...@gmail.com>
Committed: Wed Nov 12 17:14:38 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/mock/MockEndpoint.java | 5 +++--
 .../org/apache/camel/component/validator/ValidatorEndpoint.java | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4c5ae14a/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java 
b/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
index 4cb60e9..71e127e 100644
--- a/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java
@@ -93,6 +93,9 @@ public class MockEndpoint extends DefaultEndpoint implements 
BrowsableEndpoint {
     // must be volatile so changes is visible between the thread which 
performs the assertions
     // and the threads which process the exchanges when routing messages in 
Camel
     protected volatile Processor reporter;
+    
+    @UriParam(defaultValue = "true")
+    protected boolean copyOnExchange = true;
 
     private volatile Processor defaultProcessor;
     private volatile Map<Integer, Processor> processors;
@@ -110,8 +113,6 @@ public class MockEndpoint extends DefaultEndpoint 
implements BrowsableEndpoint {
 
     @UriPath(description = "Name of mock endpoint")
     private String name;
-    @UriParam(defaultValue = "true")
-    protected boolean copyOnExchange = true;
     @UriParam
     private volatile int expectedCount;
     @UriParam

http://git-wip-us.apache.org/repos/asf/camel/blob/4c5ae14a/camel-core/src/main/java/org/apache/camel/component/validator/ValidatorEndpoint.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/component/validator/ValidatorEndpoint.java
 
b/camel-core/src/main/java/org/apache/camel/component/validator/ValidatorEndpoint.java
index 89a6f73..8e260ba 100644
--- 
a/camel-core/src/main/java/org/apache/camel/component/validator/ValidatorEndpoint.java
+++ 
b/camel-core/src/main/java/org/apache/camel/component/validator/ValidatorEndpoint.java
@@ -20,7 +20,6 @@ import java.io.InputStream;
 import javax.xml.XMLConstants;
 import javax.xml.validation.SchemaFactory;
 
-import org.apache.camel.spi.UriPath;
 import org.w3c.dom.ls.LSResourceResolver;
 
 import org.apache.camel.Component;
@@ -34,6 +33,7 @@ import 
org.apache.camel.processor.validation.ValidatingProcessor;
 import org.apache.camel.processor.validation.ValidatorErrorHandler;
 import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriPath;
 import org.apache.camel.util.IOHelper;
 import org.apache.camel.util.ResourceHelper;
 import org.slf4j.Logger;

Reply via email to