The inspector suggests that a native method could be made static. 
 AFAICT that is wrong because the code that implements the native method 
could use the object.

Also, consider the following stupid but simple example.  The test() 
method returns an object of an inner class and therefore implicitly uses 
the Foo object.  The inspector says that test() could be made static, 
but this is not true.

package test;
public class Foo {
    public Object test() {
        return new Object() {
            public String toString() {
                return Foo.this.toString();
            }
        };
    }
}



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

Reply via email to