fixed the type parameterization bug. This should be both binary and source compatible.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17107 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-04-12 21:27:03 +00:00
1 parent 45ca22c6d4
commit e29cb4b2e4
1 file changed
+1 -1
@@ -225,7 +225,7 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
* is allowed to create multiple instances of the same descriptor. Order is also
* significant.
*/
public void rebuildHetero(StaplerRequest req, JSONObject formData, Collection<Descriptor<T>> descriptors, String key) throws FormException {
public void rebuildHetero(StaplerRequest req, JSONObject formData, Collection<? extends Descriptor<T>> descriptors, String key) throws FormException {
data.replaceBy(Descriptor.newInstancesFromHeteroList(req,formData,key,descriptors));
}