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

Key: IDEA-17600
Type: New Feature New Feature
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Stephen Friedrich
Votes: 0
Watchers: 0
Operations

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

Introduce Parameter fails to recognize new unused parameter

Created: 01 Apr 08 18:02   Updated: 03 Apr 08 15:59
Component/s: Refactoring

Build: 7,757


 Description  « Hide
private void foo(int a) {
    int b = 2 * a;
    System.out.println("b = " + b);
}

If a parameter is introduced for "2 * a" (while that text is selecetd) then in the refactoring dialog Idea proposes to remove unused parameter a (but the refactoring productes a redundant local variable).
However if a parameter is introduced when caret is on the line with the declaration of b, but no text is selected (or user explicitly selects "b"), then Idea does not detect that "a" is an unused parameter after the refactoring.



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