Project: JDT
Bug 190188 [clean up] Extra parentheses not removed
Reported: 2007-05-31 08:20:12 | Status: resolved fixed

I20070530-0010 Given: package p01; public class Klazz { public void foo() { (new Object()).toString(); } } 1. Run clean up with 'Remove unnecessary parentheses' enabled Is: No changes Should: new Object().toString(); Also the quick assist is not offered

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/InlineMethodTests.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/OperatorPrecedence.java