diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 8ecbc280..dde03dc5 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -926,7 +926,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { return; } File chosenFile = jfc.getSelectedFile(); - String chosenPath = null; + String chosenPath; try { chosenPath = chosenFile.getCanonicalPath(); } catch (Exception e) { @@ -945,7 +945,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { return; } File chosenFile = jfc.getSelectedFile(); - String chosenPath = null; + String chosenPath; try { chosenPath = chosenFile.getCanonicalPath(); } catch (Exception e) { @@ -1273,7 +1273,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { if (!urlString.startsWith("http")) { urlString = "http://" + urlString; } - URL url = null; + URL url; try { url = new URL(urlString); } catch (MalformedURLException e) { @@ -1557,10 +1557,6 @@ public final class MainWindow implements Runnable, RipStatusHandler { ripButton.doClick(); } - public static void enableWindowPositioning() { - Utils.setConfigBoolean("window.position", true); - } - private static boolean hasWindowPositionBug() { String osName = System.getProperty("os.name"); // Java on Windows has a bug where if we try to manually set the position of the