NonNull Annotation

suggest change
public class Foo {
    private String name;
    public Foo(@NonNull String name){...};
    ...
}

Here @NonNull is an annotation processed at compile time by Android Studio. It warns you that this constructor needs a non-null parameter.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents