From ccf802e32fe38f64410ff84fc0dd019a384e0d4e Mon Sep 17 00:00:00 2001 From: Ben Woo <30431861+benwoo1110@users.noreply.github.com> Date: Fri, 3 Feb 2023 20:15:46 +0800 Subject: [PATCH] perf: Update to use json-smart --- pom.xml | 6 ++++++ .../MultiverseCore/utils/webpaste/BitlyURLShortener.java | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 44d3ab20..2628624a 100644 --- a/pom.xml +++ b/pom.xml @@ -330,6 +330,12 @@ CommandHandler 11 + + + net.minidev + json-smart + 2.4.1 + com.dumptruckman.minecraft buscript diff --git a/src/main/java/com/onarandombox/MultiverseCore/utils/webpaste/BitlyURLShortener.java b/src/main/java/com/onarandombox/MultiverseCore/utils/webpaste/BitlyURLShortener.java index 0dbb8397..3c1e7234 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/utils/webpaste/BitlyURLShortener.java +++ b/src/main/java/com/onarandombox/MultiverseCore/utils/webpaste/BitlyURLShortener.java @@ -1,12 +1,12 @@ package com.onarandombox.MultiverseCore.utils.webpaste; -import org.json.simple.JSONObject; -import org.json.simple.parser.JSONParser; -import org.json.simple.parser.ParseException; - import java.io.IOException; import java.util.Map; +import net.minidev.json.JSONObject; +import net.minidev.json.parser.JSONParser; +import net.minidev.json.parser.ParseException; + /** * A {@link URLShortener} using {@code bit.ly}. Requires an access token. */