Remove the deprecated methods
This commit is contained in:
parent
824662c6ef
commit
64b8b52e2c
@ -28,14 +28,6 @@ public enum SocksAddressType {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksAddressType fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksAddressType valueOf(byte b) {
|
||||
for (SocksAddressType code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -28,14 +28,6 @@ public enum SocksAuthScheme {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksAuthScheme fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksAuthScheme valueOf(byte b) {
|
||||
for (SocksAuthScheme code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -26,14 +26,6 @@ public enum SocksAuthStatus {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksAuthStatus fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksAuthStatus valueOf(byte b) {
|
||||
for (SocksAuthStatus code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -45,7 +45,7 @@ public class SocksCmdRequestDecoder extends ReplayingDecoder<SocksCmdRequestDeco
|
||||
protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuf, List<Object> out) throws Exception {
|
||||
switch (state()) {
|
||||
case CHECK_PROTOCOL_VERSION: {
|
||||
version = SocksProtocolVersion.fromByte(byteBuf.readByte());
|
||||
version = SocksProtocolVersion.valueOf(byteBuf.readByte());
|
||||
if (version != SocksProtocolVersion.SOCKS5) {
|
||||
break;
|
||||
}
|
||||
|
@ -34,14 +34,6 @@ public enum SocksCmdStatus {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksCmdStatus fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksCmdStatus valueOf(byte b) {
|
||||
for (SocksCmdStatus code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -28,14 +28,6 @@ public enum SocksCmdType {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksCmdType fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksCmdType valueOf(byte b) {
|
||||
for (SocksCmdType code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -27,14 +27,6 @@ public enum SocksProtocolVersion {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksProtocolVersion fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksProtocolVersion valueOf(byte b) {
|
||||
for (SocksProtocolVersion code : values()) {
|
||||
if (code.b == b) {
|
||||
|
@ -26,14 +26,6 @@ public enum SocksSubnegotiationVersion {
|
||||
this.b = b;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #valueOf(byte)} instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public static SocksSubnegotiationVersion fromByte(byte b) {
|
||||
return valueOf(b);
|
||||
}
|
||||
|
||||
public static SocksSubnegotiationVersion valueOf(byte b) {
|
||||
for (SocksSubnegotiationVersion code : values()) {
|
||||
if (code.b == b) {
|
||||
|
Loading…
Reference in New Issue
Block a user