maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aherit...@apache.org
Subject svn commit: r439244 - /maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java
Date Fri, 01 Sep 2006 09:20:22 GMT
Author: aheritier
Date: Fri Sep  1 02:20:21 2006
New Revision: 439244

URL: http://svn.apache.org/viewvc?rev=439244&view=rev
Log:
Performance Optimization of the Reactor
PR : MAVEN-1786
>From : Emmanuel Renaud

Modified:
    maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java

Modified: maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java
URL: http://svn.apache.org/viewvc/maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java?rev=439244&r1=439243&r2=439244&view=diff
==============================================================================
--- maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java (original)
+++ maven/maven-1/core/trunk/src/java/org/apache/maven/werkz/Goal.java Fri Sep  1 02:20:21
2006
@@ -548,12 +548,12 @@
 
         Iterator precursorIter = getPrecursors().iterator();
         Goal eachPrereq = null;
-
         while ( precursorIter.hasNext() )
         {
             eachPrereq = (Goal) precursorIter.next();
 
-            eachPrereq.checkForCycles( initialGoal, new HashSet( visited ) );
+            eachPrereq.checkForCycles( initialGoal, visited );
+            visited.remove( eachPrereq );
         }
     }
 



Mime
View raw message