From c86b6adad8d58258040c355ef09e6f94cefb8273 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 21 Sep 2023 15:38:38 +0200 Subject: [PATCH] ThreadUtil -> kt --- .../pump/common/utils/ThreadUtil.java | 22 ------------------- .../pump/common/utils/ThreadUtil.kt | 12 ++++++++++ 2 files changed, 12 insertions(+), 22 deletions(-) delete mode 100644 pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.java create mode 100644 pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.kt diff --git a/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.java b/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.java deleted file mode 100644 index e98c5524e8..0000000000 --- a/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.java +++ /dev/null @@ -1,22 +0,0 @@ -package info.nightscout.pump.common.utils; - -/** - * Created by geoff on 5/27/16. - */ -public class ThreadUtil { - - public static long getThreadId() { - return Thread.currentThread().getId(); - } - - - public static String getThreadName() { - return Thread.currentThread().getName(); - } - - - public static String sig() { - Thread t = Thread.currentThread(); - return t.getName() + "[" + t.getId() + "]"; - } -} diff --git a/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.kt b/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.kt new file mode 100644 index 0000000000..c11c2e3719 --- /dev/null +++ b/pump/pump-common/src/main/java/info/nightscout/pump/common/utils/ThreadUtil.kt @@ -0,0 +1,12 @@ +package info.nightscout.pump.common.utils + +/** + * Created by geoff on 5/27/16. + */ +object ThreadUtil { + + @JvmStatic fun sig(): String { + val t = Thread.currentThread() + return t.name + "[" + t.id + "]" + } +} \ No newline at end of file