[
https://issues.apache.org/jira/browse/NETBEANS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reema Taneja updated NETBEANS-694:
----------------------------------
Labels: JDK10-LVTI (was: )
> 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
> Priority: Minor
> Labels: JDK10-LVTI
>
> 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