camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [6/6] camel git commit: Fixed CS
Date Sun, 30 Nov 2014 16:53:44 GMT
Fixed CS


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

Branch: refs/heads/master
Commit: 6674e4ef44c6f03cf94b129d41497690f06cf08a
Parents: b293895
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Nov 30 17:28:11 2014 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Nov 30 17:28:11 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/support/ServiceSupport.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6674e4ef/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java b/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
index a1cf081..976db03 100644
--- a/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
+++ b/camel-core/src/main/java/org/apache/camel/support/ServiceSupport.java
@@ -235,8 +235,9 @@ public abstract class ServiceSupport implements StatefulService {
     @Override
     public boolean isRunAllowed() {
         // if we have not yet initialized, then all options is false
-        if (!started.get() && !starting.get() && !stopping.get() &&
!stopped.get()
-            && !suspending.get() && !suspended.get() && !shutdown.get()
&& !shuttingdown.get()) {
+        boolean unused1 = !started.get() && !starting.get() && !stopping.get()
&& !stopped.get();
+        boolean unused2 = !suspending.get() && !suspended.get() && !shutdown.get()
&& !shuttingdown.get();
+        if (unused1 && unused2) {
             return false;
         }
         return !isStoppingOrStopped();


Mime
View raw message