From e755573fb31db3320eebc343818ae0c94f80e8b4 Mon Sep 17 00:00:00 2001 From: zh32 Date: Mon, 4 Nov 2013 15:59:59 +0100 Subject: [PATCH] Removed unused import and made code nicer. --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index 75856108..102d7333 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -4,7 +4,6 @@ import com.google.common.base.Preconditions; import java.math.BigInteger; import java.net.InetSocketAddress; import java.net.URLEncoder; -import java.security.GeneralSecurityException; import java.security.MessageDigest; import java.util.ArrayList; import java.util.List; @@ -13,7 +12,6 @@ import javax.crypto.Cipher; import javax.crypto.SecretKey; import lombok.Getter; import lombok.RequiredArgsConstructor; -import lombok.Setter; import net.md_5.bungee.BungeeCord; import net.md_5.bungee.EncryptionUtil; import net.md_5.bungee.UserConnection; @@ -267,7 +265,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection { return; } - if ( InitialHandler.this.onlineMode ) + if ( onlineMode ) { unsafe().sendPacket( request = EncryptionUtil.encryptRequest() ); } else