camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-9271: Fixed parent check if this class is extended. Thanks to Hans Orbaan for the patch.
Date Fri, 30 Oct 2015 07:32:53 GMT
Repository: camel
Updated Branches:
  refs/heads/master 79f61e3dd -> 6dae060ee


CAMEL-9271: Fixed parent check if this class is extended. Thanks to Hans Orbaan for the patch.


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

Branch: refs/heads/master
Commit: 6dae060eeec8b49531df5d6828030f4ef037f6eb
Parents: 79f61e3
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Fri Oct 30 08:33:08 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Fri Oct 30 08:33:08 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/model/ProcessorDefinition.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6dae060e/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 2ddb383..7744ca9 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
@@ -200,7 +200,7 @@ public abstract class ProcessorDefinition<Type extends ProcessorDefinition<Type>
         }
 
         // validate that top-level is only added on the route (eg top level)
-        boolean parentIsRoute = this.getClass().isAssignableFrom(RouteDefinition.class);
+        boolean parentIsRoute = RouteDefinition.class.isAssignableFrom(this.getClass());
         if (output.isTopLevelOnly() && !parentIsRoute) {
             throw new IllegalArgumentException("The output must be added as top-level on
the route. Try moving " + output + " to the top of route.");
         }


Mime
View raw message