提交 3a86ab8c 编写于 作者: K kohsuke

Labels are listed in the lexicological order

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21001 71c3de6d-444a-0410-be80-ed276b4c234a
上级 488edd72
......@@ -36,6 +36,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.Collection;
import java.util.TreeSet;
import com.thoughtworks.xstream.converters.Converter;
import com.thoughtworks.xstream.converters.MarshallingContext;
......@@ -345,7 +346,7 @@ public class Label implements Comparable<Label>, ModelObject {
* @since 1.308
*/
public static Set<Label> parse(String labels) {
Set<Label> r = new HashSet<Label>();
Set<Label> r = new TreeSet<Label>();
labels = fixNull(labels);
if(labels.length()>0)
for( String l : labels.split(" +"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册