Reema Taneja created NETBEANS-694:
-------------------------------------
Summary: show var hint for variable declaration containing diamond
operator
Key: NETBEANS-694
URL: https://issues.apache.org/jira/browse/NETBEANS-694
Project: NetBeans
Issue Type: Improvement
Reporter: Reema Taneja
Assignee: Reema Taneja
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists