Velocity dependency fix

This commit is contained in:
2025-05-22 14:29:05 -04:00
parent 6967246edb
commit de31d837b9
3 changed files with 6 additions and 17 deletions
@@ -12,7 +12,7 @@ public class FunkemunkyAPI {
/**
*
* Queries https://funkemunky.cc/vpn API and returns information on the IP
* Queries <a href="https://funkemunky.cc/vpn">...</a> API and returns information on the IP
*
* @param ip String
* @param license String
@@ -25,7 +25,7 @@ public class FunkemunkyAPI {
throws JSONException, IOException {
JSONObject result = JsonReader.readJsonFromUrl(String
.format("https://funkemunky.cc/vpn?ip=%s&license=%s&cache=%s",
ip, license.length() == 0 ? "none" : license, cachedResults));
ip, license.isEmpty() ? "none" : license, cachedResults));
return VPNResponse.fromJson(result);
}
@@ -43,7 +43,7 @@ public class FunkemunkyAPI {
}
/**
* Queries https://funkemunky.cc/vpn/queryCheck and returns information based on the
* Queries <a href="https://funkemunky.cc/vpn/queryCheck">...</a> and returns information based on the
* provided licence input.
*
* @param license String
@@ -7,7 +7,7 @@ import lombok.Data;
/**
* Used to format the JSON response from https://funkemunky.cc/vpn/queryCheck into an object for project use.
* Used to format the JSON response from <a href="https://funkemunky.cc/vpn/queryCheck">...</a> into an object for project use.
*/
@Data
@Builder(toBuilder = true)
@@ -19,18 +19,7 @@ public class QueryResponse {
private long queriesMax;
/**
* Takes a JSON String and feeds it into {@link QueryResponse#fromJson(JSONObject)}
*
* @param jsonString String (formatted in JSON)
* @return QueryResponse
* @throws JSONException Throws when JSON is not formatted properly.
*/
public static QueryResponse fromJson(String jsonString) throws JSONException {
return fromJson(new JSONObject(jsonString));
}
/**
* Formats response from https://funkemunky.cc/vpn/queryCheck into {@link QueryResponse} for project use.
* Formats response from <a href="https://funkemunky.cc/vpn/queryCheck">...</a> into {@link QueryResponse} for project use.
*
* @param object JSONObject
* @return QueryResponse