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 234129 - [Replace with EnumMap] Hint should support diamond operator
Summary: [Replace with EnumMap] Hint should support diamond operator
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-08 11:17 UTC by Jiri Prox
Modified: 2015-10-05 12:16 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 2013-08-08 11:17:50 UTC
Hint Map replaceable with EnumMap should support diamond operator

Have a code:

Map<DropMode,String> m =  new HashMap<DropMode,String>()
-> hint is provided

but for 
Map<DropMode,String> m =  new HashMap<>()
 hint is not provided



Product Version: NetBeans IDE Dev (Build 201308042300)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b40
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b98
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2015-10-05 12:16:52 UTC
Should be trivial - seems just a missing pattern