History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17747
Type: New Feature New Feature
Status: Open Open
Assignee: Unassigned
Reporter: Gaetan Zoritchak
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Extract method should suggest more parameters

Created: 14 Apr 08 16:01   Updated: 14 Apr 08 16:01
Component/s: Refactoring

Build: 7,757


 Description  « Hide
Example :

MyObject myObj1 = new MyObject("obj1name", new Long(1), previousVar);

When trying to extract a method from this line , Idea just propose the previousVar as parameter of the new method. The elements "obj1name" and new Long(1) are not evaluated has possible parameters. You have to introduce them as loca variables, extract the method and then inline the created variables.

Having all that done in "extract method" would be better.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.