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

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

Issue 316963003: Keep a static reference to Java GCMDriver instance (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FindBugs Created 6 years, 6 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 | components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java » ('j') | 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 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>
« no previous file with comments | « no previous file | components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698