1. Overview
Integer getAge(@Nullable Person person) {
// ... same as earlier
}
Now when we run a build, we’ll see a new error:
error: [NullAway] dereferenced expression person is @Nullable
return person.getAge();
^
最后修改:2024年1月8日
Integer getAge(@Nullable Person person) {
// ... same as earlier
}
Now when we run a build, we’ll see a new error:
error: [NullAway] dereferenced expression person is @Nullable
return person.getAge();
^