Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322597 - [clean up] "Remove unnecessary casts" should remove unnecessary parentheses
Summary: [clean up] "Remove unnecessary casts" should remove unnecessary parentheses
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 18:13 EDT by Markus Keller CLA
Modified: 2011-02-25 10:54 EST (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 Markus Keller CLA 2010-08-12 18:13:51 EDT
I20100810-0800

The "Remove unnecessary casts" Clean Up should remove unnecessary parentheses like the quick fix already does:

class IntComp implements Comparator<Integer> {
    public int compare(Integer o1, Integer o2) {
        return ((Integer) o1).intValue() - ((Integer) o2).intValue();
    }
}
Comment 1 Deepak Azad CLA 2011-02-20 23:27:08 EST
Fixed in HEAD (along with Bug 335173).
Comment 2 Markus Keller CLA 2011-02-25 10:54:09 EST
Verified in N20110224-2000, thanks. This was really annoying...