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/12/18 07:21:59 UTC
[3/3] camel git commit: Fixed the CS error of camel component
Fixed the CS error of camel component
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ccab027f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ccab027f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ccab027f
Branch: refs/heads/master
Commit: ccab027f48df20e04c21e48ab0ce34056facffc5
Parents: 5bd61ab
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Dec 18 11:23:29 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Dec 18 14:20:49 2014 +0800
----------------------------------------------------------------------
.../camel/component/jetty/DefaultJettyHttpBinding.java | 2 +-
.../java/org/apache/camel/test/junit4/TestSupport.java | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/ccab027f/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/DefaultJettyHttpBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/DefaultJettyHttpBinding.java b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/DefaultJettyHttpBinding.java
index 5137d15..92b6c21 100644
--- a/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/DefaultJettyHttpBinding.java
+++ b/components/camel-jetty/src/main/java/org/apache/camel/component/jetty/DefaultJettyHttpBinding.java
@@ -192,7 +192,7 @@ public class DefaultJettyHttpBinding implements JettyHttpBinding {
}
Map<String, String> getSimpleMap(Map<String, Collection<String>> headers) {
- Map<String, String> result = new HashMap<String ,String>();
+ Map<String, String> result = new HashMap<String , String>();
for (String key : headers.keySet()) {
Collection<String> valueCol = headers.get(key);
String value = (valueCol == null) ? null : valueCol.iterator().next();
http://git-wip-us.apache.org/repos/asf/camel/blob/ccab027f/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
----------------------------------------------------------------------
diff --git a/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java b/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
index f086c82..0df328a 100644
--- a/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
+++ b/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java
@@ -149,11 +149,11 @@ public abstract class TestSupport extends Assert {
}
public static <T extends Throwable> T assertThrowable(Class<T> expectedType, Throwable t) {
- assertNotNull("Expected an exinstance of type: " + expectedType.getName() + " but was null", t);
- if (!expectedType.isInstance(t)) {
- throw new AssertionError("Unexpected throwable", t);
- }
- return expectedType.cast(t);
+ assertNotNull("Expected an exinstance of type: " + expectedType.getName() + " but was null", t);
+ if (!expectedType.isInstance(t)) {
+ throw new AssertionError("Unexpected throwable", t);
+ }
+ return expectedType.cast(t);
}
public static void assertEndpointUri(Endpoint endpoint, String uri) {