Community
Participate
Working Groups
In the following case, renaming 'name1' should recursively rename 'name2' as well (or at least ask the user whether to propagate renaming or not). This can be also considered during "change method signature". Many thanks. public class Test { public void someMethod( String name1 ) { } } class TestSub extends Test { @Override public void someMethod( String name2 ) { } }
Change Method Signature already updates the parameter name in all subtypes iff the parameter name in the subtype method matches the name in the supertype method. We have not had any complaints about that heuristic so far, and I think it covers most usage scenarios well.
I see the point of no need to rename both if they don't originally match. But what about renaming both if they already match, just like the behavior of "change method signature"?