From 4cccd854cc3bfb82b373429fdd315725a46f7b93 Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 9 Oct 2019 17:47:20 +0800 Subject: [PATCH] Remove useless files --- .../src/jvmTest/kotlin/NetworkTest.java | 31 ------------------- .../src/jvmTest/kotlin/event/EventTest.kt | 30 ------------------ 2 files changed, 61 deletions(-) delete mode 100644 mirai-core/src/jvmTest/kotlin/NetworkTest.java delete mode 100644 mirai-core/src/jvmTest/kotlin/event/EventTest.kt diff --git a/mirai-core/src/jvmTest/kotlin/NetworkTest.java b/mirai-core/src/jvmTest/kotlin/NetworkTest.java deleted file mode 100644 index aa475522c..000000000 --- a/mirai-core/src/jvmTest/kotlin/NetworkTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @author Him188moe - */ -public class NetworkTest { - public static void main(String[] args) { - - /* - System.out.println(Short.valueOf("37 13", 16)); - - System.out.println(1040400290L & 0x0FFFFFFFF); - System.out.println(Long.valueOf("3E033FA2", 16)); - */ - - - } - - - public static String bytesToHex(byte[] bytes) { - StringBuffer sb = new StringBuffer(); - for(int i = 0; i < bytes.length; i++) { - String hex = Integer.toHexString(bytes[i] & 0xFF); - if(hex.length() < 2){ - sb.append(0); - } - sb.append(hex); - } - return sb.toString(); - } - - -} diff --git a/mirai-core/src/jvmTest/kotlin/event/EventTest.kt b/mirai-core/src/jvmTest/kotlin/event/EventTest.kt deleted file mode 100644 index 3bfe70b6c..000000000 --- a/mirai-core/src/jvmTest/kotlin/event/EventTest.kt +++ /dev/null @@ -1,30 +0,0 @@ -package event - -import net.mamoe.mirai.event.Event -import net.mamoe.mirai.event.broadcast -import net.mamoe.mirai.event.subscribeAll -import kotlin.reflect.KClass - -/** - * @author Him188moe - */ -open class SuperEvent : Event() { - companion object : KClass by SuperEvent::class//方便 subscribe -} - -open class ChildEvent : SuperEvent() - -open class ChildChildEvent : ChildEvent() - -class ChildChildChildEvent : ChildChildEvent() - - -suspend fun main() { - SuperEvent.subscribeAll { - always { - println(it.javaClass.simpleName)//ChildChildChildEvent - } - } - - ChildChildChildEvent().broadcast() -} \ No newline at end of file