Added @Deprecated annotation to the implementations of deprecated methods in ChannelBuffer (basically to silence nagging compiler)
This commit is contained in:
parent
1695e32b0f
commit
605d2969d2
@ -309,6 +309,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
|
||||
return buf;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ChannelBuffer readBytes(ChannelBufferIndexFinder endIndexFinder) {
|
||||
int endIndex = indexOf(readerIndex, writerIndex, endIndexFinder);
|
||||
if (endIndex < 0) {
|
||||
@ -323,6 +324,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
|
||||
return slice;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ChannelBuffer readSlice(ChannelBufferIndexFinder endIndexFinder) {
|
||||
int endIndex = indexOf(readerIndex, writerIndex, endIndexFinder);
|
||||
if (endIndex < 0) {
|
||||
@ -388,6 +390,7 @@ public abstract class AbstractChannelBuffer implements ChannelBuffer {
|
||||
readerIndex = newReaderIndex;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int skipBytes(ChannelBufferIndexFinder firstIndexFinder) {
|
||||
int oldReaderIndex = readerIndex;
|
||||
int newReaderIndex = indexOf(oldReaderIndex, writerIndex, firstIndexFinder);
|
||||
|
@ -15,6 +15,10 @@
|
||||
*/
|
||||
package org.jboss.netty.handler.codec.replay;
|
||||
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
import org.jboss.netty.buffer.ChannelBufferFactory;
|
||||
import org.jboss.netty.buffer.ChannelBufferIndexFinder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
@ -24,10 +28,6 @@ import java.nio.channels.GatheringByteChannel;
|
||||
import java.nio.channels.ScatteringByteChannel;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
import org.jboss.netty.buffer.ChannelBuffer;
|
||||
import org.jboss.netty.buffer.ChannelBufferFactory;
|
||||
import org.jboss.netty.buffer.ChannelBufferIndexFinder;
|
||||
|
||||
/**
|
||||
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
|
||||
* @author <a href="http://gleamynode.net/">Trustin Lee</a>
|
||||
@ -343,6 +343,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
||||
throw new UnreplayableOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ChannelBuffer readBytes(ChannelBufferIndexFinder endIndexFinder) {
|
||||
int endIndex = buffer.indexOf(buffer.readerIndex(), buffer.writerIndex(), endIndexFinder);
|
||||
if (endIndex < 0) {
|
||||
@ -361,6 +362,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
||||
return buffer.readBytes(length);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public ChannelBuffer readSlice(
|
||||
ChannelBufferIndexFinder endIndexFinder) {
|
||||
int endIndex = buffer.indexOf(buffer.readerIndex(), buffer.writerIndex(), endIndexFinder);
|
||||
@ -519,6 +521,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
||||
throw new UnreplayableOperationException();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int skipBytes(ChannelBufferIndexFinder firstIndexFinder) {
|
||||
int oldReaderIndex = buffer.readerIndex();
|
||||
int newReaderIndex = buffer.indexOf(oldReaderIndex, buffer.writerIndex(), firstIndexFinder);
|
||||
|
Loading…
x
Reference in New Issue
Block a user