Created
August 25, 2019 18:31
-
-
Save aagarwal1012/8865ba214a60a037235ed5573b33c3a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@UiThread | |
void onUiThread() {} | |
void unannotatedCallsUiThread() { | |
onUiThread(); | |
} | |
@WorkerThread | |
void testMethodAnnotations(TextView textView) { | |
textView.setText(""); // correct: displays warning. | |
onUiThread(); // correct: displays warning. | |
// UNEXPECTED: the following method does not display a warning. | |
// I expect it to because it calls a @UiThread annotated method. | |
unannotatedCallsUiThread(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment