commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1306201 - /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java
Date Wed, 28 Mar 2012 07:38:41 GMT
Author: simonetripodi
Date: Wed Mar 28 07:38:41 2012
New Revision: 1306201

URL: http://svn.apache.org/viewvc?rev=1306201&view=rev
Log:
expected values first

Modified:
    commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java

Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java
URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java?rev=1306201&r1=1306200&r2=1306201&view=diff
==============================================================================
--- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java
(original)
+++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/visit/DefaultVisitAlgorithmsSelector.java
Wed Mar 28 07:38:41 2012
@@ -141,16 +141,16 @@ final class DefaultVisitAlgorithmsSelect
                 else
                 {
                     VisitState stateAfterEdgeDiscovery = handler.discoverEdge( prevHead,
e, v );
-                    if ( stateAfterEdgeDiscovery != CONTINUE )
+                    if ( CONTINUE != stateAfterEdgeDiscovery )
                     {
                         skipVertex = true;
-                        if ( stateAfterEdgeDiscovery == ABORT )
+                        if ( ABORT == stateAfterEdgeDiscovery )
                         {
                             visitingGraph = false;
                         }
                     }
 
-                    if ( handler.finishEdge( prevHead, e, v ) == ABORT )
+                    if ( ABORT == handler.finishEdge( prevHead, e, v ) )
                     {
                         skipVertex = true;
                         visitingGraph = false;
@@ -166,10 +166,10 @@ final class DefaultVisitAlgorithmsSelect
                 visitedVertices.add( v );
                 VisitState stateAfterVertexDiscovery = handler.discoverVertex( v );
                 vertexWasDiscovered = true;
-                if ( stateAfterVertexDiscovery != CONTINUE )
+                if ( CONTINUE != stateAfterVertexDiscovery )
                 {
                     skipVertex = true;
-                    if ( stateAfterVertexDiscovery == ABORT )
+                    if ( ABORT == stateAfterVertexDiscovery )
                     {
                         visitingGraph = false;
                     }
@@ -192,7 +192,7 @@ final class DefaultVisitAlgorithmsSelect
                 }
             }
 
-            if ( vertexWasDiscovered && handler.finishVertex( v ) == ABORT )
+            if ( vertexWasDiscovered && ABORT == handler.finishVertex( v ) )
             {
                 visitingGraph = false;
             }



Mime
View raw message