You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/04/07 10:29:39 UTC
[3/4] camel git commit: Fixed CS. This closes #931
Fixed CS. This closes #931
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d943910b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d943910b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d943910b
Branch: refs/heads/master
Commit: d943910b26ace69c7c00122ea32dcdf883e21a32
Parents: 4cf2aa4
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Apr 7 10:29:04 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Apr 7 10:29:04 2016 +0200
----------------------------------------------------------------------
.../src/main/java/org/apache/camel/spi/CamelContextTracker.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/d943910b/camel-core/src/main/java/org/apache/camel/spi/CamelContextTracker.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/spi/CamelContextTracker.java b/camel-core/src/main/java/org/apache/camel/spi/CamelContextTracker.java
index 0ca540c..87e3dd7 100644
--- a/camel-core/src/main/java/org/apache/camel/spi/CamelContextTracker.java
+++ b/camel-core/src/main/java/org/apache/camel/spi/CamelContextTracker.java
@@ -37,7 +37,7 @@ public class CamelContextTracker implements Closeable {
public CamelContextTracker() {
filter = new Filter() {
public boolean accept(CamelContext camelContext) {
- return camelContext.getClass().getName().contains("Proxy") == false;
+ return !camelContext.getClass().getName().contains("Proxy");
}
};
}
@@ -50,7 +50,7 @@ public class CamelContextTracker implements Closeable {
* Called to determine whether this tracker should accept the given context.
*/
public boolean accept(CamelContext camelContext) {
- return filter != null ? filter.accept(camelContext) : true;
+ return filter == null || filter.accept(camelContext);
}
/**