Can't Repro
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Information redacted by Android Beta Feedback.
an...@google.com <an...@google.com> #3
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Please upgrade to the latest release from the link
Description
supply all required information.
Studio Build: #AI-143.2821654
Version of Gradle Plugin: 2.1.0
Version of Gradle: 2.10
Version of Java: jdk1.8.0_73
OS: Win7x64 Ultimate
Steps to Reproduce:
- Create Class with a field like:
public class MyClass {
Rect myRect;
private void myMethod() {
if (isRectZero(myRect)) {
//... do stuff
}
}
private boolean isRectZero(@NonNull Rect rect) {
return rect.left == 0 && rect.right == 0 && rect.top == 0 && rect.bottom == 0;
}
}
- The line if (isRectZero(myRect)) should be warned that it's using a field that's null, but Android Studio isn't evaluating Class Fields for the Annotations evaluations.