I\'d like to use the @NonNull annotation in Android, but I can\'t figure out just the right way to do it. I propose you this example:
@NonNull
public voi
Google examples do it as follows
import static com.google.common.base.Preconditions.checkNotNull; ... public void doStuff(@NonNull String sParm){ this.sParm= checkNotNull(s, "sParm cannot be null!"); }