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

Reply via email to