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

Key: IDEA-15036
Type: New Feature New Feature
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Sascha Weinreuter
Votes: 2
Watchers: 3
Operations

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

Improve type inference for Introduce Variable & Co

Created: 17 Sep 07 13:00   Updated: 19 Sep 07 21:55
Component/s: Refactoring

Build: 7,274
Severity: Medium


 Description  « Hide
Consider the following code:
XmlTag tag = ...;
tag.putUserData(Key.create("DATA"), "abc");

// ------------------------------------------------------

String s = tag.getUserData(Key.create("DATA"));

It would be great if Introduce Variable/Field/Constant for Key.create("DATA") did not suggest to create a Key<Object>, but instead would know that Key<String is the better/correct type here.



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