Win2k sp2, jdk1.3.1, idea #612
package pt.keysoft.ztest;
import javax.swing.JComponent;
public class TestInspection {
void test() {
JComponent component = getComponent();
final String componentName = component.getName();
if (component == null || !"xxx".equals(componentName)) {
return;
}
}
private JComponent getComponent() {
return null;
}
}
Inspection erroneously suggests:
Condition component == null is always false.
And possibly the same error, component.getName() isn't flagged as a
possible NPE.
Carlos
--
Carlos Costa e Silva <[EMAIL PROTECTED]>
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list