Fix a few things, remove bad code

This commit is contained in:
gomeow
2013-08-27 11:21:42 -07:00
parent 357e0c6142
commit 2ba9656f48
7 changed files with 40 additions and 38 deletions
@@ -15,7 +15,7 @@ import org.xml.sax.SAXException;
public class Updater {
public Updater(String v) throws SAXException, IOException, ParserConfigurationException {
oldVersion = v.substring(0, 5);
String oldVersion = v.substring(0, 5);
HttpURLConnection connection = (HttpURLConnection) new URL("http://dev.bukkit.org/projects/playervaults/files.rss").openConnection();
connection.setConnectTimeout(10000);
connection.setReadTimeout(10000);
@@ -31,7 +31,6 @@ public class Updater {
update = !newVersion.equals(oldVersion);
}
private String oldVersion;
private String newVersion;
private String link;
private boolean update;