camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/2] camel git commit: Fixed the CS errors of camel-core
Date Fri, 27 Mar 2015 02:45:13 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.15.x 4caeec56c -> b7d50009a


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/e1650c35
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e1650c35
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e1650c35

Branch: refs/heads/camel-2.15.x
Commit: e1650c35473767a5b59b19d880da47b7abd279c8
Parents: 4caeec5
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Mar 27 10:43:56 2015 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Mar 27 10:43:56 2015 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/model/ChoiceDefinition.java    | 3 ++-
 .../apache/camel/component/bean/issues/SingleMethodService.java   | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e1650c35/camel-core/src/main/java/org/apache/camel/model/ChoiceDefinition.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/model/ChoiceDefinition.java b/camel-core/src/main/java/org/apache/camel/model/ChoiceDefinition.java
index a27502b..837364e 100644
--- a/camel-core/src/main/java/org/apache/camel/model/ChoiceDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/ChoiceDefinition.java
@@ -147,7 +147,8 @@ public class ChoiceDefinition extends ProcessorDefinition<ChoiceDefinition>
{
                 // okay we are adding a when or otherwise so allow any kind of output after
this again
                 onlyWhenOrOtherwise = false;
             } else {
-                throw new IllegalArgumentException("A new choice clause should start with
a when() or otherwise(). If you intend to end the entire choice and are using endChoice()
then use end() instead.");
+                throw new IllegalArgumentException("A new choice clause should start with
a when() or otherwise()."
+                    + " If you intend to end the entire choice and are using endChoice()
then use end() instead.");
             }
         }
         super.addOutput(output);

http://git-wip-us.apache.org/repos/asf/camel/blob/e1650c35/camel-core/src/test/java/org/apache/camel/component/bean/issues/SingleMethodService.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/issues/SingleMethodService.java
b/camel-core/src/test/java/org/apache/camel/component/bean/issues/SingleMethodService.java
index f3fe2e0..8bfc823 100644
--- a/camel-core/src/test/java/org/apache/camel/component/bean/issues/SingleMethodService.java
+++ b/camel-core/src/test/java/org/apache/camel/component/bean/issues/SingleMethodService.java
@@ -18,5 +18,5 @@ package org.apache.camel.component.bean.issues;
 
 public interface SingleMethodService<S, T> {
 
-    public T doSomething(S foo);
+    T doSomething(S foo);
 }


Mime
View raw message