Browse Source

Cleaning up redundant initializers

master
anthony restaino 8 years ago
parent
commit
1b1ce0726c
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 4
      app/src/main/java/acr/browser/lightning/reading/HtmlFetcher.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -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) {

4
app/src/main/java/acr/browser/lightning/reading/HtmlFetcher.java

@ -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

Loading…
Cancel
Save