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

Bug 319358

Summary: [quick fix] in case of instanceof generic type
Product: [Eclipse Project] JDT Reporter: Nanda Firdausi <nanda.firdausi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, nanda.firdausi
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nanda Firdausi CLA 2010-07-09 05:58:40 EDT
Build Identifier: 

In case of instanceof generic type like this:

if (a instanceof Map) {

Eclipse should offer a quick fix to add unbounded generic type to the class name, so the result is something like this:

if (a instanceof Map<?,?>) {

Reproducible: Always
Comment 1 Dani Megert CLA 2010-07-28 09:08:55 EDT
Simply use content assist (Ctrl+Space) to do this.