Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319358 - [quick fix] in case of instanceof generic type
Summary: [quick fix] in case of instanceof generic type
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-09 05:58 EDT by Nanda Firdausi CLA
Modified: 2010-07-28 09:08 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.