Done in build #612. The problem was inspector did not take in account "null instanceof Smth" is constantly false. Thanks Michael!
Best regards, Maxim Shafirov IntelliJ Software, http://www.intellij.com/ "Develop with pleasure!" ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 12, 2002 12:07 PM Subject: [Eap-list] 611 code inspection - minor problem see example code, local code analysis warns about test.doIt() potentially throwing NPE - the correct warning would be that val instanceof Test will always be false. It's interesting that there's no suspicous code found if you write it like ((Test)val).doIt(); public class Test { public void setValue(Object val) { if (val==null) { if (val instanceof Test) { Test test = (Test)val; test.doIt(); } } else { } } private void doIt() { } } ____________________________________________________________________________ __ Tagesgeld: 4% Guthabenzinsen bei t�glicher Verf�gbarkeit. Jetzt informieren! http://diba.web.de/ _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
