Add @Deprecated when the javadoc says its deprecated
Motivation: Reduce nag warnings when compiling, make it easier for IDEs to display what's deprecated. Modifications: Added @Deprecated in a few places Result: No more warnings.
This commit is contained in:
parent
7db9f454fe
commit
cf07f984b1
@ -267,6 +267,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf> {
|
||||
* @deprecated use the Little Endian accessors, e.g. {@code getShortLE}, {@code getIntLE}
|
||||
* instead of creating a buffer with swapped {@code endianness}.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract ByteOrder order();
|
||||
|
||||
/**
|
||||
@ -280,6 +281,7 @@ public abstract class ByteBuf implements ReferenceCounted, Comparable<ByteBuf> {
|
||||
* @deprecated use the Little Endian accessors, e.g. {@code getShortLE}, {@code getIntLE}
|
||||
* instead of creating a buffer with swapped {@code endianness}.
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract ByteBuf order(ByteOrder endianness);
|
||||
|
||||
/**
|
||||
|
@ -21,11 +21,13 @@ import io.netty.util.ByteProcessor;
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor}.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ByteBufProcessor extends ByteProcessor {
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NUL}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NUL = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -36,6 +38,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NON_NUL}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NON_NUL = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -46,6 +49,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_CR}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_CR = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -56,6 +60,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NON_CR}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NON_CR = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -66,6 +71,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_LF}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_LF = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -76,6 +82,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NON_LF}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NON_LF = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -86,6 +93,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_CRLF}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_CRLF = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -96,6 +104,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NON_CRLF}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NON_CRLF = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -106,6 +115,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_LINEAR_WHITESPACE}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_LINEAR_WHITESPACE = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
@ -116,6 +126,7 @@ public interface ByteBufProcessor extends ByteProcessor {
|
||||
/**
|
||||
* @deprecated Use {@link ByteProcessor#FIND_NON_LINEAR_WHITESPACE}.
|
||||
*/
|
||||
@Deprecated
|
||||
ByteBufProcessor FIND_NON_LINEAR_WHITESPACE = new ByteBufProcessor() {
|
||||
@Override
|
||||
public boolean process(byte value) throws Exception {
|
||||
|
@ -33,6 +33,7 @@ import java.nio.charset.Charset;
|
||||
* @deprecated use the Little Endian accessors, e.g. {@code getShortLE}, {@code getIntLE}
|
||||
* instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public class SwappedByteBuf extends ByteBuf {
|
||||
|
||||
private final ByteBuf buf;
|
||||
|
@ -70,6 +70,6 @@ public interface ChannelInboundHandler extends ChannelHandler {
|
||||
* Gets called if a {@link Throwable} was thrown.
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("deprecated")
|
||||
@SuppressWarnings("deprecation")
|
||||
void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception;
|
||||
}
|
||||
|
@ -79,6 +79,7 @@ public class ChannelOption<T> extends AbstractConstant<ChannelOption<T>> {
|
||||
/**
|
||||
* @deprecated Use {@link MaxMessagesRecvByteBufAllocator}
|
||||
*/
|
||||
@Deprecated
|
||||
public static final ChannelOption<Integer> MAX_MESSAGES_PER_READ = valueOf("MAX_MESSAGES_PER_READ");
|
||||
public static final ChannelOption<Integer> WRITE_SPIN_COUNT = valueOf("WRITE_SPIN_COUNT");
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user