findbugs @DefaultAnnotation(NonNull.class)

Hi,

The findbugs NonNull works fine in IntelliJ.

However, it seems that it does not know the DefaultAnnotation.

That is, in the code below, a call to myMethod1 with a null arguments is reported as an error (as expected).
but that's not the case for myMethod2.

Is there a way to instruct IntelliJ to take the DefaultAnnotation annotation into account?

+++++++++++++++

import edu.umd.cs.findbugs.annotations.DefaultAnnotation;
import edu.umd.cs.findbugs.annotations.NonNull;

@DefaultAnnotation(NonNull.class)
public class MyClass {
    static public void myMethod1(@NonNull Object value) {
       ...
    }
    static public void myMethod2(Object value) {
       ...
    }
}

+++++++++++++++



Regards,

David

Please sign in to leave a comment.