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 01d8df9dad3dd96bd8f62aa14c68b3a64076805d..bf0e51f6945d6b70797f43ee79053dbfeb86383f 100644 |
--- a/build/android/findbugs_filter/findbugs_exclude.xml |
+++ b/build/android/findbugs_filter/findbugs_exclude.xml |
@@ -89,4 +89,13 @@ In particular, ~ at the start of a string means it's a regex. |
<Method name="onCreate" /> |
<Bug code="Dm" /> |
</Match> |
+ <!-- |
+ Ignore write to static field in GCMDriver, as it's the cleanest way to mark |
+ the singleton as null when the native counterpart is destroyed. |
+ --> |
+ <Match> |
+ <Class name="~org\.chromium\.components\.gcm_driver\..*\.GCMDriver" /> |
+ <Method name="destroy" /> |
+ <Bug code="ST" /> |
+ </Match> |
</FindBugsFilter> |