OSDN Git Service

make private inner classes static
authorCary Clark <cary@android.com>
Tue, 11 Aug 2009 20:42:26 +0000 (16:42 -0400)
committerCary Clark <cary@android.com>
Tue, 11 Aug 2009 20:42:26 +0000 (16:42 -0400)
bug found by findbugs
http://b/issue?id=1856695

src/com/android/browser/BrowserActivity.java
src/com/android/browser/TabControl.java

index e15064b..769f54d 100644 (file)
@@ -281,7 +281,7 @@ public class BrowserActivity extends Activity
      * Anything that is in this directory will be copied over to the
      * user data partition in app_plugins.
      */
-    private class CopyPlugins implements Runnable {
+    private static class CopyPlugins implements Runnable {
         final static String TAG = "PluginsInstaller";
         final static String ZIP_FILTER = "assets/plugins/";
         final static String APK_PATH = "/system/app/Browser.apk";
@@ -621,7 +621,7 @@ public class BrowserActivity extends Activity
         }
     }
 
-    private class ClearThumbnails extends AsyncTask<File, Void, Void> {
+    private static class ClearThumbnails extends AsyncTask<File, Void, Void> {
         @Override
         public Void doInBackground(File... files) {
             if (files != null) {
index e6cacb8..1df4b74 100644 (file)
@@ -69,7 +69,7 @@ class TabControl {
     private final LayoutInflater mInflateService;
     // Subclass of WebViewClient used in subwindows to notify the main
     // WebViewClient of certain WebView activities.
-    private class SubWindowClient extends WebViewClient {
+    private static class SubWindowClient extends WebViewClient {
         // The main WebViewClient.
         private final WebViewClient mClient;