Cleaning up redundant initializers

This commit is contained in:
anthony restaino 2017-06-24 22:19:57 -04:00
parent 4e4707b524
commit 1b1ce0726c
2 changed files with 3 additions and 3 deletions

View File

@ -747,7 +747,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
} }
return true; return true;
case KeyEvent.KEYCODE_TAB: case KeyEvent.KEYCODE_TAB:
int nextIndex = 0; int nextIndex;
if (event.isShiftPressed()) { if (event.isShiftPressed()) {
// Go back one tab // Go back one tab
if (mTabsManager.indexOfCurrentTab() > 0) { if (mTabsManager.indexOfCurrentTab() > 0) {

View File

@ -376,8 +376,8 @@ public class HtmlFetcher {
*/ */
private String getResolvedUrl(String urlAsString, int timeout, private String getResolvedUrl(String urlAsString, int timeout,
int num_redirects) { int num_redirects) {
String newUrl = null; String newUrl;
int responseCode = -1; int responseCode;
try { try {
HttpURLConnection hConn = createUrlConnection(urlAsString, timeout, true); HttpURLConnection hConn = createUrlConnection(urlAsString, timeout, true);
// force no follow // force no follow