camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [6/7] camel git commit: Camel-8052 Fixed the CS error
Date Mon, 17 Nov 2014 04:11:28 GMT
Camel-8052 Fixed the CS error


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

Branch: refs/heads/master
Commit: 6ca101792c5e49198c8f499f1c8acb4398636b2c
Parents: e5e7d39
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Mon Nov 17 12:03:39 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Mon Nov 17 12:07:19 2014 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/builder/ProcessorBuilder.java | 4 ++--
 .../src/main/java/org/apache/camel/impl/DefaultExchange.java     | 2 +-
 .../main/java/org/apache/camel/model/ProcessorDefinition.java    | 4 ++--
 .../src/test/java/org/apache/camel/impl/DefaultExchangeTest.java | 4 ++--
 .../camel/processor/RemovePropertiesWithExclusionTest.java       | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6ca10179/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java b/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
index f246f92..e2c88b4 100644
--- a/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
+++ b/camel-core/src/main/java/org/apache/camel/builder/ProcessorBuilder.java
@@ -271,7 +271,7 @@ public final class ProcessorBuilder {
     public static Processor removeProperties(final String pattern) {
         return new Processor() {
             public void process(Exchange exchange) {
-            	exchange.removeProperties(pattern);
+                exchange.removeProperties(pattern);
             }
 
             @Override
@@ -287,7 +287,7 @@ public final class ProcessorBuilder {
     public static Processor removeProperties(final String pattern, final String... exceptionPatterns)
{
         return new Processor() {
             public void process(Exchange exchange) {
-            	exchange.removeProperties(pattern, exceptionPatterns);
+                exchange.removeProperties(pattern, exceptionPatterns);
             }
 
             @Override

http://git-wip-us.apache.org/repos/asf/camel/blob/6ca10179/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java b/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
index 513546d..340537b 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/DefaultExchange.java
@@ -188,7 +188,7 @@ public final class DefaultExchange implements Exchange {
         }
         return getProperties().remove(name);
     }
-	
+
     public boolean removeProperties(String pattern) {
         return removeProperties(pattern, (String[]) null);
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/6ca10179/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java b/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
index 4ac05d9..9197a7d 100644
--- a/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
@@ -2882,7 +2882,7 @@ public abstract class ProcessorDefinition<Type extends ProcessorDefinition<Type>
      */
     @SuppressWarnings("unchecked")
     public Type removeProperties(String pattern) {
-    	RemovePropertiesDefinition answer = new RemovePropertiesDefinition(pattern);
+        RemovePropertiesDefinition answer = new RemovePropertiesDefinition(pattern);
         addOutput(answer);
         return (Type) this;
     }
@@ -2896,7 +2896,7 @@ public abstract class ProcessorDefinition<Type extends ProcessorDefinition<Type>
      */
     @SuppressWarnings("unchecked")
     public Type removeProperties(String pattern, String... excludePatterns) {
-    	RemovePropertiesDefinition answer = new RemovePropertiesDefinition(pattern, excludePatterns);
+        RemovePropertiesDefinition answer = new RemovePropertiesDefinition(pattern, excludePatterns);
         addOutput(answer);
         return (Type) this;
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/6ca10179/camel-core/src/test/java/org/apache/camel/impl/DefaultExchangeTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/impl/DefaultExchangeTest.java b/camel-core/src/test/java/org/apache/camel/impl/DefaultExchangeTest.java
index cd6fd7e..c8395ac 100644
--- a/camel-core/src/test/java/org/apache/camel/impl/DefaultExchangeTest.java
+++ b/camel-core/src/test/java/org/apache/camel/impl/DefaultExchangeTest.java
@@ -157,7 +157,7 @@ public class DefaultExchangeTest extends ExchangeTestSupport {
         assertEquals("peach", exchange.getProperty("fruit2"));
         assertEquals("Africa", exchange.getProperty("zone"));
 
-        exchange.removeProperties("fr*","fruit1","fruit2");
+        exchange.removeProperties("fr*", "fruit1", "fruit2");
         assertTrue(exchange.hasProperties());
         assertEquals(exchange.getProperties().size(), 3);
         assertEquals(null, exchange.getProperty("fruit", String.class));
@@ -181,7 +181,7 @@ public class DefaultExchangeTest extends ExchangeTestSupport {
         assertEquals("peach", exchange.getProperty("fruit2"));
         assertEquals("Africa", exchange.getProperty("zone"));
 
-        exchange.removeProperties("fr*","fruit","fruit1","fruit2","zone");
+        exchange.removeProperties("fr*", "fruit", "fruit1", "fruit2", "zone");
         assertTrue(exchange.hasProperties());
         assertEquals(exchange.getProperties().size(), 4);
         assertEquals("apple", exchange.getProperty("fruit", String.class));

http://git-wip-us.apache.org/repos/asf/camel/blob/6ca10179/camel-core/src/test/java/org/apache/camel/processor/RemovePropertiesWithExclusionTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/processor/RemovePropertiesWithExclusionTest.java
b/camel-core/src/test/java/org/apache/camel/processor/RemovePropertiesWithExclusionTest.java
index 7e255dc..059f161 100644
--- a/camel-core/src/test/java/org/apache/camel/processor/RemovePropertiesWithExclusionTest.java
+++ b/camel-core/src/test/java/org/apache/camel/processor/RemovePropertiesWithExclusionTest.java
@@ -78,7 +78,7 @@ public class RemovePropertiesWithExclusionTest extends ContextTestSupport
{
                     setProperty(propertyName).constant(expectedPropertyValue)
                     .setProperty(propertyName1).constant(expectedPropertyValue1)
                     .setProperty(propertyName2).constant(expectedPropertyValue2).to("mock:mid").
-                    removeProperties(pattern,exclusion).to("mock:end");
+                    removeProperties(pattern, exclusion).to("mock:end");
             }
         };
     }


Mime
View raw message