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

Key: IDEA-17883
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Unassigned
Reporter: Calum MacLean
Votes: 0
Watchers: 0
Operations

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

Extracting parameter in constructor - should offer field name as parameter name

Created: 23 Apr 08 19:50   Updated: 23 Apr 08 19:50
Component/s: Refactoring

Build: 7,757
Severity: Medium


 Description  « Hide
In the code below, when I try to extract "0" as a constructor parameter, it only offers "i" as a suggestion for the parameter name.
It should also offer the name of the field to which I'm assigning "0", as that's a common case for constructor parameters.
It could potentially also apply to method parameters, though this is less clear cut.
public class Temp
{
    private int value;

    public Temp()
    {
        value = 0;
    }
}


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