Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
HashMap<String, String> map = new HashMap<String, String>();
shows below hints in Alt+Enter dropdown:
-Use diamond inference
-Replace explicit type with var
Selecting Hint 'Use diamond inference' converts code to
HashMap<String, String> map = new HashMap<>();
Earlier displayed hint 'Replace explicit type with var' isn't displayed anymore in alt+enter.
We should display the earlier displayed hint, and upon selection, replace type and convert statement to replace diamond operator with generic param types.
Attachments
Issue Links
- links to