Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 120230 - [quick assist] Invert condition should remove unnecessary parentheses
Summary: [quick assist] Invert condition should remove unnecessary parentheses
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-10 13:30 EST by Dirk Baeumer CLA
Modified: 2011-03-07 12:36 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2005-12-10 13:30:44 EST
Build id: I20051206-1200


Test case:

if (!(o instanceof String)) {
	String name= (String)o;
}

- execute invert condition on !(o instanceof String)

actual   >> (o instanceof String)
expected << o instanceof String
Comment 1 Deepak Azad CLA 2011-02-20 23:28:20 EST
Fixed in HEAD (along with Bug 335173).
Comment 2 Raksha Vasisht CLA 2011-03-07 12:36:06 EST
Verified for 3.6 M6 with  N20110305-2000.