lahodaj commented on PR #6780:
URL: https://github.com/apache/netbeans/pull/6780#issuecomment-1839098420

   I think writing `var v = new ArrayList<>();` is likely a mistake, as it 
cannot infer anything nice. So a warning does not seem bad to me. I was 
thinking of this, and when we were generalizing the pattern for the hint, I/we 
probably went a bit too far. So this:
   https://github.com/Achal1607/netbeans/pull/2
   limits the warning to only Collections/Maps, and only to constructors that 
are unlikely to infer something sensible.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to