About Netbeans underlining a method name and saying "myMethod is never used", I have the same problem when overriding a package-private method:

public class A {
    void myMethod() {...}

    public void doStuff() {
        myMethod();
    }
}

class B extends A {
    @Override
    void myMethod() {...}
}

NetBeans hints myMethod() in class B as never used. Indeed there is no explicit calls to B.myMethod(), but that method is still used when A.myMethod() is invoked.

    Martin

Reply via email to