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
classPerson {
A a;
A b;
voidf() {
if (a.i ==null) {
// LINT
b.i =7;
}
}
}
classA {
int i;
}
This code reports an error at the LINT line, "Prefer using ??= over testing for null," because it does not take into account that a.i is not equal to b.i.
Activity