Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3092)

Unified Diff: build/android/findbugs_filter/findbugs_exclude.xml

Issue 2764213002: Add findbugs filter to exclude UiThreadTestRule in java tests (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/findbugs_filter/findbugs_exclude.xml
diff --git a/build/android/findbugs_filter/findbugs_exclude.xml b/build/android/findbugs_filter/findbugs_exclude.xml
index f6a1394f2df8b548489277c37281b519fc71e30c..3f0316c32e54c605424112044938b42445d2f1a8 100644
--- a/build/android/findbugs_filter/findbugs_exclude.xml
+++ b/build/android/findbugs_filter/findbugs_exclude.xml
@@ -26,4 +26,12 @@ In particular, ~ at the start of a string means it's a regex.
https://developer.android.com/reference/java/security/AccessController.html
-->
<Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED" />
+
+ <!-- Ignore unused public Rule in instrumentation tests -->
+ <Match>
+ <Class name="~.*\.*Test" />
+ <Field type="android.support.test.rule.UiThreadTestRule" />
+ <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
jbudorick 2017/03/22 15:43:48 Is UiThreadTestRule typically public or protected
jbudorick 2017/03/22 15:48:07 ah, nvm, found http://junit.org/junit4/javadoc/4.1
the real yoland 2017/03/22 15:50:52 It's always public because junit4 requires @Rule f
+ </Match>
+
</FindBugsFilter>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698