You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use of @MonotonicNonNull on a static field is a code smell: it may indicate poor design. You should consider whether it is possible to make the field a member field that is set in the constructor.
However, the following code does not rise an warning:
import org.checkerframework.checker.nullness.qual.*;
public class Test {
static @MonotonicNonNull Object obj;
}
The text was updated successfully, but these errors were encountered:
As the manual writes:
However, the following code does not rise an warning:
The text was updated successfully, but these errors were encountered: