You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Reema Taneja (JIRA)" <ji...@apache.org> on 2018/04/18 14:45:00 UTC

[jira] [Created] (NETBEANS-694) show var hint for variable declaration containing diamond operator

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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists