mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
removed pointless collection repackaging
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@11272 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
0e4908e7db
commit
bea24634eb
1 file changed
+4
-3
@@ -7,6 +7,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.Collection;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
/**
|
||||
@@ -44,8 +45,8 @@ public class DependencyRunner implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
private void populate(Set<AbstractProject> projectList) {
|
||||
for (AbstractProject p : projectList) {
|
||||
private void populate(Collection<? extends AbstractProject> projectList) {
|
||||
for (AbstractProject<?,?> p : projectList) {
|
||||
if (polledProjects.contains(p)) {
|
||||
// Project will be readded at the queue, so that we always use
|
||||
// the longest path
|
||||
@@ -57,7 +58,7 @@ public class DependencyRunner implements Runnable {
|
||||
polledProjects.add(p);
|
||||
|
||||
// Add all downstream dependencies
|
||||
populate(new HashSet<AbstractProject>(p.getDownstreamProjects()));
|
||||
populate(p.getDownstreamProjects());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user