
|
If you were logged in you would be able to see more operations.
|
|
|
| Build: |
7,294
|
| Severity: |
Medium
|
Hi,
This might be a feature request and not really a problem, but it would be great if it could be improved. Consider the following example:
I have a class, and I type:
Map map = new HashMap();
when I do an "Alt+Enter" on the new HashMap, the ordering in the list is first an hsqldb HashMap, and then the java.util.HashMap. I think this a shame, because 95% of the time, I'm really looking for core util classes. If this could be improved, that would be great, but that is not my issue. My issue is that if I select the java.util.HashMap, the Map map is still colored red (is not imported yet), though IntelliJ could have known which Map I want to use. Furthermore, if I try to do a manual Alt+Enter, IntelliJ first suggests an org.hibernate.mapping.Map, which isn't compatible with the new HashMap().
So my question is: could this be improved? Eg try to do some smart importing or something? Maybe you have better idea?
|
|
Description
|
Hi,
This might be a feature request and not really a problem, but it would be great if it could be improved. Consider the following example:
I have a class, and I type:
Map map = new HashMap();
when I do an "Alt+Enter" on the new HashMap, the ordering in the list is first an hsqldb HashMap, and then the java.util.HashMap. I think this a shame, because 95% of the time, I'm really looking for core util classes. If this could be improved, that would be great, but that is not my issue. My issue is that if I select the java.util.HashMap, the Map map is still colored red (is not imported yet), though IntelliJ could have known which Map I want to use. Furthermore, if I try to do a manual Alt+Enter, IntelliJ first suggests an org.hibernate.mapping.Map, which isn't compatible with the new HashMap().
So my question is: could this be improved? Eg try to do some smart importing or something? Maybe you have better idea? |
Show » |
| There are no comments yet on this issue.
|
|