Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351934

Summary: [1.7][preferences] compiler option to warn when diamond can be used, but type args are used instead.
Product: [Eclipse Project] JDT Reporter: Ayushman Jain <amj87.iitr>
Component: UIAssignee: Deepak Azad <deepakazad>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, deepakazad, markus.kell.r, Olivier_Thomann, raksha.vasisht, satyam.kandula, srikanth_sankaran
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 340747    
Bug Blocks: 349336    
Attachments:
Description Flags
fix none

Description Ayushman Jain CLA 2011-07-13 05:37:37 EDT
+++ This bug was initially created as a clone of Bug #340747 +++

Need errors/warning preference for bug 340747

eg.    ArrayList<String> a = new ArrayList<String>();
                                           ^^^^^^
will warn "Redundant specification of type arguments <String>
Comment 1 Deepak Azad CLA 2011-07-13 06:28:18 EDT
Created attachment 199562 [details]
fix

The label in preference page is "Redundant type arguments". (A possible alternative could be "Redundant type arguments in constructor invocation".)

Fixed in BETA_JAVA7.
Comment 2 Deepak Azad CLA 2011-07-13 06:28:40 EDT
.
Comment 3 Satyam Kandula CLA 2011-07-19 08:49:01 EDT
Verified using patch 1.0.0.v20110714-1400