diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/ClueScrollPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/ClueScrollPlugin.java index 3e3203991fc..ea4704136f5 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/ClueScrollPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/ClueScrollPlugin.java @@ -27,6 +27,7 @@ package net.runelite.client.plugins.cluescrolls; import com.google.common.base.MoreObjects; +import com.google.common.base.Strings; import com.google.inject.Binder; import com.google.inject.Provides; import java.awt.Color; @@ -47,7 +48,6 @@ import javax.annotation.Nullable; import javax.inject.Inject; import javax.inject.Named; -import joptsimple.internal.Strings; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.runelite.api.ChatMessageType; @@ -695,7 +695,7 @@ public void onCommandExecuted(CommandExecuted commandExecuted) { if (developerMode && commandExecuted.getCommand().equals("clue")) { - String text = Strings.join(commandExecuted.getArguments(), " "); + var text = String.join(" ", commandExecuted.getArguments()); if (text.isEmpty()) { diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/emojis/EmojiPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/emojis/EmojiPlugin.java index 48b526f7821..2d8881e6c60 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/emojis/EmojiPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/emojis/EmojiPlugin.java @@ -28,7 +28,6 @@ import java.util.regex.Pattern; import javax.annotation.Nullable; import javax.inject.Inject; -import joptsimple.internal.Strings; import net.runelite.api.MessageNode; import net.runelite.api.Player; import net.runelite.api.events.ChatMessage; @@ -160,6 +159,6 @@ String updateMessage(final String message) return null; } - return Strings.join(messageWords, " "); + return String.join(" ", messageWords); } } diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/slayer/SlayerPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/slayer/SlayerPlugin.java index 0fa6d010214..f519ad51664 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/slayer/SlayerPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/slayer/SlayerPlugin.java @@ -26,6 +26,7 @@ package net.runelite.client.plugins.slayer; import com.google.common.annotations.VisibleForTesting; +import com.google.common.base.Strings; import com.google.inject.Binder; import com.google.inject.Provides; import java.awt.Color; @@ -43,7 +44,6 @@ import java.util.regex.Pattern; import javax.inject.Inject; import javax.inject.Named; -import joptsimple.internal.Strings; import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; @@ -277,7 +277,7 @@ public void onCommandExecuted(CommandExecuted commandExecuted) { if (developerMode && commandExecuted.getCommand().equals("task")) { - var task = Strings.join(commandExecuted.getArguments(), " "); + var task = String.join(" ", commandExecuted.getArguments()); setTask(task, 42, 42); log.debug("Set task to {}", task); } diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/timetracking/clocks/ClockManager.java b/runelite-client/src/main/java/net/runelite/client/plugins/timetracking/clocks/ClockManager.java index d43c2958090..fe3d381fae0 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/timetracking/clocks/ClockManager.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/timetracking/clocks/ClockManager.java @@ -24,6 +24,7 @@ */ package net.runelite.client.plugins.timetracking.clocks; +import com.google.common.base.Strings; import com.google.common.collect.Comparators; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; @@ -34,7 +35,6 @@ import java.util.concurrent.CopyOnWriteArrayList; import javax.inject.Inject; import javax.swing.SwingUtilities; -import joptsimple.internal.Strings; import lombok.Getter; import net.runelite.client.Notifier; import net.runelite.client.config.ConfigManager;