Win2k sp2, jdk1.3.1, idea #612

package pt.keysoft.ztest;


//import javax.swing.JComponent;

public class TestInspection {

        void test() {
                Throwable throwable = null;
                try {
                        doSomething();
                }
                catch (Throwable ex) {
                        throwable = ex;
                }

                // Some code

                if (throwable != null) {
                        showErrorMessage(throwable);
                }

        }

        private void showErrorMessage(Throwable throwable) {
                throwable.printStackTrace();
        }

        private void doSomething() {
        }
}

Inspection erroneously suggests:

Condition throwavle != null is always false.


Carlos

-- 
Carlos Costa e Silva <[EMAIL PROTECTED]>


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to