X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Fcommunication%2FUpdateInfoRetriever.java;h=799c2a3dff512d1e07304a87e9e1d22f6a8ed242;hb=9349577cdfdff682b2aabd6daa24fdc3a7449b58;hp=3122f0859c310b68e6000c685d29e00a101a4f1a;hpb=da1c2a7f13fc0e3e84f36981a3bb996f2254f766;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java index 3122f085..799c2a3d 100644 --- a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java +++ b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java @@ -28,6 +28,7 @@ public class UpdateInfoRetriever { */ public void start() { fetcher = new UpdateInfoFetcher(); + fetcher.setName("UpdateInfoFetcher"); fetcher.setDaemon(true); fetcher.start(); } @@ -67,7 +68,7 @@ public class UpdateInfoRetriever { } - + /** * Parse the data received from the server. * @@ -84,7 +85,7 @@ public class UpdateInfoRetriever { reader = new BufferedReader(r); } - + String version = null; ArrayList> updates = new ArrayList>(); @@ -113,7 +114,7 @@ public class UpdateInfoRetriever { } - + /** * An asynchronous task that fetches and parses the update info. * @@ -183,7 +184,7 @@ public class UpdateInfoRetriever { String contentType = connection.getContentType(); if (contentType == null || - contentType.toLowerCase().indexOf(Communicator.UPDATE_INFO_CONTENT_TYPE) < 0) { + contentType.toLowerCase(Locale.ENGLISH).indexOf(Communicator.UPDATE_INFO_CONTENT_TYPE) < 0) { // Unknown response type log.warn("Unknown Content-type received:" + contentType); return; @@ -223,7 +224,7 @@ public class UpdateInfoRetriever { return; } - + info = new UpdateInfo(version, updates); log.info("Found update: " + info); } finally {