From: rnayabed Date: Mon, 15 Feb 2021 12:39:30 +0530 Subject: work --- work --- --- 'a/pom.xml' +++ b/pom.xml @@ -84,17 +84,11 @@ ${ThemeAPIVersion} - + --- 'a/src/main/java/com/stream_pi/server/connection/ClientConnection.java' +++ b/src/main/java/com/stream_pi/server/connection/ClientConnection.java @@ -24,7 +24,6 @@ import com.stream_pi.util.platform.Platf import com.stream_pi.util.platform.ReleaseStatus; import com.stream_pi.util.version.Version; import javafx.concurrent.Task; -import org.apache.commons.lang3.ArrayUtils; import java.io.*; import java.lang.reflect.Array; @@ -120,7 +119,7 @@ public class ClientConnection extends Th Message message = new Message("action_icon"); message.setStringArrValue(profileID, actionID); - message.setByteArrValue(ArrayUtils.toObject(icon)); + message.setByteArrValue(icon); sendMessage(message); } @@ -274,7 +273,7 @@ public class ClientConnection extends Th String profileID = s[0]; String actionID = s[1]; - getClient().getProfileByID(profileID).getActionByID(actionID).setIcon(ArrayUtils.toPrimitive(message.getByteArrValue())); + getClient().getProfileByID(profileID).getActionByID(actionID).setIcon(message.getByteArrValue()); } public void initAfterConnectionQuerySend() throws SevereException --- 'a/src/main/java/com/stream_pi/server/window/settings/GeneralSettings.java' +++ b/src/main/java/com/stream_pi/server/window/settings/GeneralSettings.java @@ -24,7 +24,6 @@ import javafx.scene.control.ScrollPane; import javafx.scene.control.TextField; import javafx.scene.layout.*; import javafx.stage.DirectoryChooser; -import org.json.JSONObject; import org.kordamp.ikonli.javafx.FontIcon; import java.awt.SystemTray; @@ -395,7 +394,8 @@ public class GeneralSettings extends VBo { @Override protected Void call() throws Exception { - try + + /*try { Platform.runLater(()->checkForUpdatesButton.setDisable(true)); @@ -403,7 +403,6 @@ public class GeneralSettings extends VBo String jsonRaw = readUrl("https://stream-pi.com/API/get_latest.php?TYPE=SERVER"); System.out.println(jsonRaw); - JSONObject jsonObject = new JSONObject(jsonRaw); String latestVersionRaw = jsonObject.getString("Version"); @@ -447,7 +446,7 @@ public class GeneralSettings extends VBo finally { Platform.runLater(()->checkForUpdatesButton.setDisable(false)); - } + }*/ return null; } }).start();; --- 'a/src/main/java/module-info.java' +++ b/src/main/java/module-info.java @@ -8,8 +8,6 @@ module com.stream_pi.server { requires org.kordamp.ikonli.javafx; - requires org.apache.commons.lang3; - requires java.xml; requires javafx.base; @@ -21,7 +19,5 @@ module com.stream_pi.server { requires java.sql; - requires org.json; - exports com.stream_pi.server; } \ No newline at end of file