mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 02:26:18 +00:00
merged the last RC branch
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@16922 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
fd5988d39a
commit
dabb35190e
15 files changed
+74
-15
No files matched your search
@@ -779,6 +779,19 @@ public class Util {
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Combines all the given collections into a single list.
|
||||
*/
|
||||
public static <T> List<T> join(Collection<? extends T>... items) {
|
||||
int size = 0;
|
||||
for (Collection<? extends T> item : items)
|
||||
size += item.size();
|
||||
List<T> r = new ArrayList<T>(size);
|
||||
for (Collection<? extends T> item : items)
|
||||
r.addAll(item);
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates Ant {@link FileSet} with the base dir and include pattern.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user