camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [3/4] camel git commit: Fixed CS. This closes #931
Date Thu, 07 Apr 2016 08:29:39 GMT
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 <davsclaus@apache.org>
Authored: Thu Apr 7 10:29:04 2016 +0200
Committer: Claus Ibsen <davsclaus@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);
     }
 
     /**


Mime
View raw message