Project: JDT
Bug 238353 [quick fix] Provide fix for boolean condition checks with non-boolean objects to check against != null
Reported: 2008-06-24 19:01:01 | Status: resolved fixed

If you have code like this: String arg = ci.nextArgument(); while (arg) { ... } then the JDT should provide a quick-fix and/or content-assistant to change the statement to while (arg != null) { ... }

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/TypeMismatchQuickFixTests.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TypeMismatchSubProcessor.java