You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/06/27 14:29:43 UTC
[2/2] git commit: Fix bunch of CS errors in camel-2.13.x branch
Fix bunch of CS errors in camel-2.13.x branch
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/92c8d3b9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/92c8d3b9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/92c8d3b9
Branch: refs/heads/camel-2.13.x
Commit: 92c8d3b9d4d7755f96c5a96a2b8d5d9f5b06663a
Parents: ae4c08d
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Jun 27 20:28:52 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Jun 27 20:29:16 2014 +0800
----------------------------------------------------------------------
.../component/properties/DefaultPropertiesParser.java | 4 ++--
.../cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/92c8d3b9/camel-core/src/main/java/org/apache/camel/component/properties/DefaultPropertiesParser.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/properties/DefaultPropertiesParser.java b/camel-core/src/main/java/org/apache/camel/component/properties/DefaultPropertiesParser.java
index 7d25e8d..f6c3aba 100644
--- a/camel-core/src/main/java/org/apache/camel/component/properties/DefaultPropertiesParser.java
+++ b/camel-core/src/main/java/org/apache/camel/component/properties/DefaultPropertiesParser.java
@@ -20,11 +20,11 @@ import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
+import static java.lang.String.format;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import static java.lang.String.format;
-
/**
* A parser to parse a string which contains property placeholders
*/
http://git-wip-us.apache.org/repos/asf/camel/blob/92c8d3b9/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java
index eab6c41..be3d946 100644
--- a/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java
+++ b/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/jaxrs/CxfRsHeaderFilterStrategyTest.java
@@ -26,16 +26,16 @@ public class CxfRsHeaderFilterStrategyTest extends Assert {
@Test
public void testFilterContentType() throws Exception {
HeaderFilterStrategy filter = new CxfRsHeaderFilterStrategy();
- assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("content-type","just a test", null));
- assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("Content-Type","just a test", null));
+ assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("content-type", "just a test", null));
+ assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("Content-Type", "just a test", null));
}
-
+
@Test
public void testFilterCamelHeaders() throws Exception {
HeaderFilterStrategy filter = new CxfRsHeaderFilterStrategy();
- assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders(Exchange.CHARSET_NAME,"just a test", null));
+ assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders(Exchange.CHARSET_NAME, "just a test", null));
assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders(CxfConstants.CAMEL_CXF_RS_RESPONSE_CLASS, "just a test", null));
- assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("org.apache.camel.such.Header","just a test", null));
+ assertTrue("Get a wrong filtered result", filter.applyFilterToCamelHeaders("org.apache.camel.such.Header", "just a test", null));
assertFalse("Get a wrong filtered result", filter.applyFilterToCamelHeaders("camel.result", "just a test", null));
}