From 61ce9df1f83834f8ab2435660b3056cae7888810 Mon Sep 17 00:00:00 2001 From: Manevolent Date: Sat, 13 Oct 2018 16:14:07 -0400 Subject: [PATCH] Compilation issues with jitpack --- src/main/java/com/github/manevolent/ts3j/util/Ts3Crypt.java | 3 --- .../java/com/github/manevolent/ts3j/ServerConnectionTest.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/github/manevolent/ts3j/util/Ts3Crypt.java b/src/main/java/com/github/manevolent/ts3j/util/Ts3Crypt.java index 9483108..ffeb1ac 100644 --- a/src/main/java/com/github/manevolent/ts3j/util/Ts3Crypt.java +++ b/src/main/java/com/github/manevolent/ts3j/util/Ts3Crypt.java @@ -5,10 +5,8 @@ import Punisher.NaCl.Internal.Ed25519Ref10.GroupElementP3; import Punisher.NaCl.Internal.Ed25519Ref10.GroupOperations; import Punisher.NaCl.Internal.Ed25519Ref10.ScalarOperations; import Punisher.NaCl.Internal.Sha512; -import com.github.manevolent.ts3j.api.Message; import com.github.manevolent.ts3j.identity.*; import com.github.manevolent.ts3j.license.License; -import com.github.manevolent.ts3j.util.Pair; import org.bouncycastle.asn1.*; import org.bouncycastle.crypto.digests.SHA256Digest; import org.bouncycastle.crypto.params.ECDomainParameters; @@ -25,7 +23,6 @@ import java.io.IOException; import java.math.BigInteger; import java.nio.ByteBuffer; import java.security.*; -import java.util.Base64; import java.util.List; public final class Ts3Crypt { diff --git a/src/test/java/com/github/manevolent/ts3j/ServerConnectionTest.java b/src/test/java/com/github/manevolent/ts3j/ServerConnectionTest.java index 2a2cd4c..ca51b07 100644 --- a/src/test/java/com/github/manevolent/ts3j/ServerConnectionTest.java +++ b/src/test/java/com/github/manevolent/ts3j/ServerConnectionTest.java @@ -32,7 +32,7 @@ public class ServerConnectionTest { client.setHWID("TestTestTest"); client.setVoiceHandler(packet -> - System.out.println(((PacketBody0Voice)packet.getBody()).getServerFlag0()) + System.out.println(packet.getServerFlag0()) ); while (true) {