Issue
I have to import @NonNull but can not find out using Alt+Enter in Windows, what steps have to do to import @NonNull class in java.
private Toaster(@NonNull Context context) {
weakReference = new WeakReference<>(context);
}
public static Toaster getInstance(@NonNull Context context) {
if (toaster == null) {
toaster = new Toaster(context.getApplicationContext());
}
return toaster;
}
Settings > Build, Execution, Deployment > Compiler
Solution
Settings > Keymap > Find 'Alt+Enter'.
Answered By - S_i_l_e_n_t C_o_d_e_r
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.