diff options
| author | 2009-05-26 06:20:15 -0700 | |
|---|---|---|
| committer | 2009-05-26 06:20:15 -0700 | |
| commit | b7eef04564d2568130df297fd55ad3e3c8b1fd62 (patch) | |
| tree | f9d4e806cb83d4870c47922562384f9d745aa0d1 | |
| parent | ee8332286c07c82bb0dca438519350a9cbc2c783 (diff) | |
| parent | 213a31c7d5c11ca05fda666e7a697cc94df0d0f1 (diff) | |
Merge change 2267
* changes:
Fix some Java mistakes found by FindBugs.
| -rw-r--r-- | core/java/android/webkit/WebView.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 82f8a3d04694..66229294010d 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -210,7 +210,7 @@ public class WebView extends AbsoluteLayout static final boolean DEBUG = false; static final boolean LOGV_ENABLED = DEBUG; - private class ExtendedZoomControls extends FrameLayout { + private static class ExtendedZoomControls extends FrameLayout { public ExtendedZoomControls(Context context, AttributeSet attrs) { super(context, attrs); LayoutInflater inflater = (LayoutInflater) @@ -564,7 +564,7 @@ public class WebView extends AbsoluteLayout public void onNewPicture(WebView view, Picture picture); } - public class HitTestResult { + public static class HitTestResult { /** * Default HitTestResult, where the target is unknown */ @@ -2859,7 +2859,7 @@ public class WebView extends AbsoluteLayout /** * Class representing the node which is focused. */ - private class FocusNode { + private static class FocusNode { public FocusNode() { mBounds = new Rect(); } @@ -4568,8 +4568,8 @@ public class WebView extends AbsoluteLayout HashMap arg = new HashMap(); arg.put("focusData", new WebViewCore.FocusData(mFocusData)); arg.put("replace", replace); - arg.put("start", new Integer(newStart)); - arg.put("end", new Integer(newEnd)); + arg.put("start", Integer.valueOf(newStart)); + arg.put("end", Integer.valueOf(newEnd)); mTextGeneration++; mWebViewCore.sendMessage(EventHub.REPLACE_TEXT, oldStart, oldEnd, arg); } @@ -4888,10 +4888,6 @@ public class WebView extends AbsoluteLayout // Class used to use a dropdown for a <select> element private class InvokeListBox implements Runnable { - // Strings for the labels in the listbox. - private String[] mArray; - // Array representing whether each item is enabled. - private boolean[] mEnableArray; // Whether the listbox allows multiple selection. private boolean mMultiple; // Passed in to a list with multiple selection to tell |