From 568437f2b893b50e022a733566a5544ab1f5956c Mon Sep 17 00:00:00 2001 From: SiboVG Date: Thu, 17 Nov 2022 20:09:18 +0100 Subject: [PATCH] Rename var --- core/src/net/sf/openrocket/communication/Communicator.java | 6 +++--- .../sf/openrocket/communication/UpdateInfoRetriever.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/net/sf/openrocket/communication/Communicator.java b/core/src/net/sf/openrocket/communication/Communicator.java index f762f0239..45fef263f 100644 --- a/core/src/net/sf/openrocket/communication/Communicator.java +++ b/core/src/net/sf/openrocket/communication/Communicator.java @@ -9,7 +9,7 @@ public abstract class Communicator { protected static final String BUG_REPORT_URL; protected static final String UPDATE_URL; - protected static final String UPDATE_ADDITIONAL_URL; // Extra URL needed for the update checker + protected static final String UPDATE_URL_LATEST; // Extra URL needed for the latest GitHub release static { String url; @@ -21,10 +21,10 @@ public abstract class Communicator { url = System.getProperty("openrocket.debug.updateurl"); if (url == null) { url = "https://api.github.com/repos/openrocket/openrocket/releases"; - UPDATE_ADDITIONAL_URL = "https://api.github.com/repos/openrocket/openrocket/releases/latest"; + UPDATE_URL_LATEST = "https://api.github.com/repos/openrocket/openrocket/releases/latest"; } else { - UPDATE_ADDITIONAL_URL = null; + UPDATE_URL_LATEST = null; } UPDATE_URL = url; } diff --git a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java index 692df1834..f4c006d42 100644 --- a/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java +++ b/core/src/net/sf/openrocket/communication/UpdateInfoRetriever.java @@ -179,10 +179,10 @@ public class UpdateInfoRetriever { JsonArray arr1 = retrieveReleaseJSONArr(relUrl); if (arr1 == null) return null; - if (Communicator.UPDATE_ADDITIONAL_URL == null) return arr1; + if (Communicator.UPDATE_URL_LATEST == null) return arr1; // Get release tags from latest release page - String latestRelUrl = Communicator.UPDATE_ADDITIONAL_URL; + String latestRelUrl = Communicator.UPDATE_URL_LATEST; latestRelUrl = generateUrlWithParameters(latestRelUrl, params); JsonArray arr2 = retrieveReleaseJSONArr(latestRelUrl);