Community
Participate
Working Groups
Build Identifier: 20110916-0149 There should be a refactoring equivalent to the "change method signature" refactoring that would allow you to modify the "signature" of a class's generic parameters. For instance, if I wanted to remove, reorder, or introduce additional generic parameters to a class, it would change the references to the class accordingly and add default values, etc. Reproducible: Always
Moving to JDT/UI
That would be interesting for types as well as for methods that have generic type parameters.
Definitely for types as well, thanks for the idea!
Actually I just realized after posting the reply that I don't actually know what you mean by it applying to "types" as a distinct concept from it applying to generic class parameters. Could you please explain the distinction?
"type" is the general term for classes and interfaces (including enums and annotations). The feature should not only work for generic classes, but also for interfaces: public interface Map<K,V> {..} ... and for methods: public static <T> void copy(List<? super T> dest, List<? extends T> src) { .. }
FYI, out of curiosity, I tested this out in IntelliJ IDEA and it works as described in this enhancement request.