This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 242247 - Remove diamond operator
Summary: Remove diamond operator
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-23 14:45 UTC by Jiri Prox
Modified: 2015-10-02 15:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2014-02-23 14:45:20 UTC
During migration of project to older jdk it would be useful to have hint removing the diamond operator with proper type.

Eg. 
HashMap<Long,State> states = new HashMap<>();

to

HashMap<Long,State> states = new HashMap<Long,State>();


Product Version: NetBeans IDE 8.0 RC1 (Build 201402202300)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.0rc1
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.0rc1