Fix missing "since" attributes for Deprecated code
See gh-34989
This commit is contained in:
@@ -85,13 +85,13 @@ public class DataBufferWrapper implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer capacity(int capacity) {
|
||||
return this.delegate.capacity(capacity);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer ensureCapacity(int capacity) {
|
||||
return this.delegate.ensureCapacity(capacity);
|
||||
}
|
||||
@@ -173,13 +173,13 @@ public class DataBufferWrapper implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer slice(int index, int length) {
|
||||
return this.delegate.slice(index, length);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer retainedSlice(int index, int length) {
|
||||
return this.delegate.retainedSlice(index, length);
|
||||
}
|
||||
@@ -190,25 +190,25 @@ public class DataBufferWrapper implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer() {
|
||||
return this.delegate.asByteBuffer();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer(int index, int length) {
|
||||
return this.delegate.asByteBuffer(index, length);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0.5")
|
||||
public ByteBuffer toByteBuffer() {
|
||||
return this.delegate.toByteBuffer();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0.5")
|
||||
public ByteBuffer toByteBuffer(int index, int length) {
|
||||
return this.delegate.toByteBuffer(index, length);
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ public class DefaultDataBuffer implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer capacity(int capacity) {
|
||||
setCapacity(capacity);
|
||||
return this;
|
||||
@@ -340,7 +340,7 @@ public class DefaultDataBuffer implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DefaultDataBuffer slice(int index, int length) {
|
||||
checkIndex(index, length);
|
||||
int oldPosition = this.byteBuffer.position();
|
||||
@@ -380,13 +380,13 @@ public class DefaultDataBuffer implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer() {
|
||||
return asByteBuffer(this.readPosition, readableByteCount());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer(int index, int length) {
|
||||
checkIndex(index, length);
|
||||
|
||||
@@ -397,7 +397,7 @@ public class DefaultDataBuffer implements DataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0.5")
|
||||
public ByteBuffer toByteBuffer(int index, int length) {
|
||||
checkIndex(index, length);
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class DefaultDataBufferFactory implements DataBufferFactory {
|
||||
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DefaultDataBuffer allocateBuffer() {
|
||||
return allocateBuffer(this.defaultInitialCapacity);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ public final class JettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer capacity(int capacity) {
|
||||
this.delegate.capacity(capacity);
|
||||
return this;
|
||||
@@ -225,7 +225,7 @@ public final class JettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public DataBuffer slice(int index, int length) {
|
||||
DefaultDataBuffer delegateSlice = this.delegate.slice(index, length);
|
||||
if (this.chunk != null) {
|
||||
@@ -250,19 +250,19 @@ public final class JettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer() {
|
||||
return this.delegate.asByteBuffer();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer(int index, int length) {
|
||||
return this.delegate.asByteBuffer(index, length);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0.5")
|
||||
public ByteBuffer toByteBuffer(int index, int length) {
|
||||
return this.delegate.toByteBuffer(index, length);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public class JettyDataBufferFactory implements DataBufferFactory {
|
||||
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public JettyDataBuffer allocateBuffer() {
|
||||
DefaultDataBuffer delegate = this.delegate.allocateBuffer();
|
||||
return new JettyDataBuffer(this, delegate);
|
||||
|
||||
@@ -135,7 +135,7 @@ public class NettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public NettyDataBuffer capacity(int capacity) {
|
||||
this.byteBuf.capacity(capacity);
|
||||
return this;
|
||||
@@ -255,14 +255,14 @@ public class NettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public NettyDataBuffer slice(int index, int length) {
|
||||
ByteBuf slice = this.byteBuf.slice(index, length);
|
||||
return new NettyDataBuffer(slice, this.dataBufferFactory);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public NettyDataBuffer retainedSlice(int index, int length) {
|
||||
ByteBuf slice = this.byteBuf.retainedSlice(index, length);
|
||||
return new NettyDataBuffer(slice, this.dataBufferFactory);
|
||||
@@ -285,19 +285,19 @@ public class NettyDataBuffer implements PooledDataBuffer {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer() {
|
||||
return this.byteBuf.nioBuffer();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public ByteBuffer asByteBuffer(int index, int length) {
|
||||
return this.byteBuf.nioBuffer(index, length);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0.5")
|
||||
public ByteBuffer toByteBuffer(int index, int length) {
|
||||
ByteBuffer result = this.byteBuf.isDirect() ?
|
||||
ByteBuffer.allocateDirect(length) :
|
||||
|
||||
@@ -61,7 +61,7 @@ public class NettyDataBufferFactory implements DataBufferFactory {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public NettyDataBuffer allocateBuffer() {
|
||||
ByteBuf byteBuf = this.byteBufAllocator.buffer();
|
||||
return new NettyDataBuffer(byteBuf, this);
|
||||
|
||||
Reference in New Issue
Block a user