From 4771a7478760ba613d324526a48945804026429e Mon Sep 17 00:00:00 2001 From: Konloch Date: Sun, 13 Feb 2022 14:36:50 -0600 Subject: [PATCH] Refactoring --- .../bytecode/club/bytecodeviewer/util/MiscUtils.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java index 75c9c01c..1f614398 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/MiscUtils.java @@ -293,6 +293,14 @@ public class MiscUtils } } + public static Thread startNewThread(String threadName, Runnable threadRunnable) + { + Thread temporaryThread = new Thread(threadRunnable, threadName); + temporaryThread.start(); + + return temporaryThread; + } + public static String getChildFromPath(String path) { if (path != null && path.contains("/")) @@ -304,8 +312,6 @@ public class MiscUtils return path; } - - /** * Reads an InputStream and returns the read byte[] *