Project: JDT
Bug 335778 [quick assist] 'Pull Negation up' and 'Push Negation down' unnecessarily available
Reported: 2011-01-29 14:33:23 | Status: verified fixed

3.7 M5 ------------------------------------------------------------ package snippet; public class Snippet { void foo(Object a) { if (!(a instanceof String)) { } } } ------------------------------------------------------------ - Select "!(a instanceof String)" - Ctrl+1 - 'Pull Negation up' and 'Pull Negation down' are available, but they do not really do anything here...

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