mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 19:16:42 +00:00
Publishers are now exposed to the m2 job type, too.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6945 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
9142dadd8a
commit
fe44825a62
11 files changed
+125
-59
No files matched your search
@@ -59,8 +59,9 @@ public class Util {
|
||||
|
||||
/**
|
||||
* Creates a filtered sublist.
|
||||
* @since 1.176
|
||||
*/
|
||||
public static <T> List<T> filter( List<?> base, Class<T> type ) {
|
||||
public static <T> List<T> filter( Iterable<?> base, Class<T> type ) {
|
||||
List<T> r = new ArrayList<T>();
|
||||
for (Object i : base) {
|
||||
if(type.isInstance(i))
|
||||
@@ -69,6 +70,13 @@ public class Util {
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a filtered sublist.
|
||||
*/
|
||||
public static <T> List<T> filter( List<?> base, Class<T> type ) {
|
||||
return filter((Iterable)base,type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Pattern for capturing variables. Either $xyz or ${xyz}, while ignoring "$$"
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user