Skip to content

Commit

Permalink
FIX: must clear auxiliary ID array when finished
Browse files Browse the repository at this point in the history
  • Loading branch information
t-dan committed Nov 1, 2018
1 parent 85cd0e1 commit b02ecf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/checkstyleSuppressions.xml
Expand Up @@ -9,7 +9,7 @@
<suppress checks="AnonInnerLength" files="NantBuilderTest.java"/>

<suppress checks="ModifiedControlVariable" files="Launcher.java"/>
<suppress checks="ModifiedControlVariable" files="PipedExecBuilder.java" lines="178"/> <!-- iterator re-assignment in for loop within validate() -->
<suppress checks="ModifiedControlVariable" files="PipedExecBuilder.java" lines="179"/> <!-- iterator re-assignment in for loop within validate() -->

<!-- main/src/net/sourceforge/cruisecontrol/builders/PipedScript.java:10:8: Unused import - net.sourceforge.cruisecontrol.Builder
But the import is required by javadoc ... -->
Expand Down
Expand Up @@ -173,6 +173,7 @@ public void validate() throws CruiseControlException {
if (auxIDs.size() != p.getWaitFor().length) {
p.setWaitFor(PipedScript.Helpers.join(auxIDs));
}
auxIDs.clear();
}
/* Re-assign the iterator (checkstyle suppresses in main/checkstyleSuppressions.xml) */
siter = scripts.iterator();
Expand Down

0 comments on commit b02ecf5

Please sign in to comment.