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:53:00 UTC

[jira] [Created] (NETBEANS-695) 'Use diamond operator' should not be displayed for var type variable declaration

Reema Taneja created NETBEANS-695:
-------------------------------------

             Summary: 'Use diamond operator' should not be displayed for var type variable declaration 
                 Key: NETBEANS-695
                 URL: https://issues.apache.org/jira/browse/NETBEANS-695
             Project: NetBeans
          Issue Type: Improvement
            Reporter: Reema Taneja
            Assignee: Reema Taneja


Use diamond operator hint shows for:

var n = new ArrayList<String>();

It shouldn't be displayed as this coverts statement to 

var n = new ArrayList<>();

In this stmt param type information is lost, is equivalent to var n = new ArrayList<Object>(), i.e.  different from original statement.

 



--
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