NonNull Annotation

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

Here @NonNull is annotation which is processed compile time by the android studio to warn you that the particular function needs non null parameter.

Feedback about page:

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



Table Of Contents