make private inner classes static
bug found by findbugs
http://b/issue?id=1856695
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index e15064b..769f54d 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -281,7 +281,7 @@
* 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 @@
}
}
- 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) {
diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java
index e6cacb8..1df4b74 100644
--- a/src/com/android/browser/TabControl.java
+++ b/src/com/android/browser/TabControl.java
@@ -69,7 +69,7 @@
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;