OSDN Git Service

Removed findbugs warnings from BrowserActivity.
authorHenrik Baard <henrik.baard@sonyericsson.com>
Wed, 21 Apr 2010 10:31:47 +0000 (12:31 +0200)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Wed, 21 Apr 2010 10:31:47 +0000 (12:31 +0200)
Change-Id: I4b5bc7b66ffb44483d0783f05b02558f709382ee

src/com/android/browser/BrowserActivity.java

index 9030cf7..a754900 100644 (file)
@@ -1464,7 +1464,7 @@ public class BrowserActivity extends Activity
         if (mTabControl.getTabCount() == 1) {
             // This is the last tab.  Open a new one, with the home
             // page and close the current one.
-            TabControl.Tab newTab = openTabToHomePage();
+            openTabToHomePage();
             closeTab(current);
             return;
         }
@@ -3772,7 +3772,7 @@ public class BrowserActivity extends Activity
         ((TextView) pageInfoView.findViewById(R.id.title)).setText(title);
 
         mPageInfoView = tab;
-        mPageInfoFromShowSSLCertificateOnError = new Boolean(fromShowSSLCertificateOnError);
+        mPageInfoFromShowSSLCertificateOnError = Boolean.valueOf(fromShowSSLCertificateOnError);
 
         AlertDialog.Builder alertDialogBuilder =
             new AlertDialog.Builder(this)