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

Key: IDEABKL-3619
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: Keith Lea
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

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

Add intention to change type arguments passed to method or instantiation

Created: 26 May 05 10:16   Updated: 17 May 06 18:11
Component/s: Editor. Intention Actions
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,341
Severity: Medium


 Description  « Hide
Given code:

class Generic<E> {
Generic(E arg) { }
}

class Tester {
void method() { new Generic<Integer>("hi"); }
}

The argument "hi" is highlighted as an error. A quick fix is provided to change Generic(E) to Generic(String). I think a more appropriate and commonly desired quick fix is to change the type argument Integer to String, to produce:

new Generic<String>("hi");



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