-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use class names to access static variables or methods #2829
Use class names to access static variables or methods #2829
Conversation
…bject reference of this class will increase the cost of the compiler's analysis. A better way is to directly use the class name to access the static variables or methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dlg99 PTAL , thanks! |
rerun failed checks |
5 similar comments
rerun failed checks |
rerun failed checks |
rerun failed checks |
rerun failed checks |
rerun failed checks |
tests are failing with
which is probably something caused by #2816 nd gradle changes colliding |
This PR from @RaulGracia #2816 should have fixed it. Kindly check @dlg99 |
@dlg99 @pkumar-singh Thanks for your attention, I merge the master code into my branch and try again。 |
@hsaputra PTAL , thanks! |
PTAL,thanks! @dlg99 |
Motivation
Accessing the static variables and methods of the class through the object reference of this class will increase the cost of the compiler's analysis. A better way is to directly use the class name to access the static variables or methods.