mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
added a convenient constructor for testing
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13168 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
2764acd06a
commit
5538210bc3
1 file changed
+4
-1
@@ -8,7 +8,6 @@ import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
@@ -41,6 +40,10 @@ public final class Axis implements Comparable<Axis>, Iterable<String> {
|
||||
throw new IllegalArgumentException(); // bug in the code
|
||||
}
|
||||
|
||||
public Axis(String name, String... values) {
|
||||
this(name,Arrays.asList(values));
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to build {@link Axis} from form.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user