Bug 532388 - Rename parameter name in interface method usability improvements
Summary: Rename parameter name in interface method usability improvements
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.7.2   Edit
Hardware: PC Mac OS X
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-13 04:32 EDT by Juergen Baier CLA
Modified: 2018-03-13 04:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Baier CLA 2018-03-13 04:32:45 EDT
If I have an interface

public interface MyInterface {

  /**
   * @param myArgumentA do something
   */
  void doSomething(int myArgumentA, int myArgumentB);

}

and an implementation

public class MyImpl implements MyInterface {

  
  public void doSomething(int myArgumentA, int myArgumentB) {
    ...
  }


}

and I rename "myArgumentA" to "myOtherArgument" then I'd like Eclipse to

- rename the JavaDoc @param
- rename the parameter name of the implementation (all rename locations should be shown - including a marker if there is a naming conflict).

So in the end (if no naming conflicts occur) the program should look this way after the rename operation:

public interface MyInterface {

  /**
   * @param myOtherArgument do something
   */
  void doSomething(int myOtherArgument, int myArgumentB);

}

public class MyImpl implements MyInterface {

  
  public void doSomething(int myOtherArgument, int myArgumentB) {
    ...
  }


}