提交 c23e5ae2 编写于 作者: K kohsuke

List erases to List no matter what the type parameter is, so these two are unnecessary

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@23490 71c3de6d-444a-0410-be80-ed276b4c234a
上级 693734fe
......@@ -177,7 +177,7 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
}
/*
The following four seemingly pointless method definitions are necessary to produce
The following two seemingly pointless method definitions are necessary to produce
backward compatible binary signatures. Without this we only get
get(Ljava/lang/Class;)Ljava/lang/Object; from PersistedList where we need
get(Ljava/lang/Class;)Lhudson/model/Describable;
......@@ -186,14 +186,6 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
return super.get(type);
}
public <U extends T> List<U> getAll(Class<U> type) {
return super.getAll(type);
}
public List<T> toList() {
return super.toList();
}
public T[] toArray(T[] array) {
return super.toArray(array);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册