Project: JDT
Bug 338675 [quick assist] 'Put expression in parentheses' is offered unnecessarily
Reported: 2011-03-02 09:36:05 | Status: resolved fixed

-------------------------------------------------- public static void main(String[] args) { int[] a = new int[10]; for (int i = 0; i < 10; i++) { a[i] = i; } } -------------------------------------------------- - Select "i" or "i <" in the for loop condition - Ctrl+1 => 'Put '<' expression in parentheses' quick assist is offered, this is incorrect as the quick assist does not work on the selection.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java