Added deprecated warnings where appropriate
This commit is contained in:
parent
4e0e95fb44
commit
c697643562
|
@ -119,6 +119,7 @@ class ByteBufInput extends Input {
|
|||
/** Throws {@link UnsupportedOperationException} because this input uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #getByteBuf() */
|
||||
@Deprecated
|
||||
public byte[] getBuffer () {
|
||||
throw new UnsupportedOperationException("This input does not used a byte[], see #getByteBuf().");
|
||||
}
|
||||
|
@ -126,6 +127,7 @@ class ByteBufInput extends Input {
|
|||
/** Throws {@link UnsupportedOperationException} because this input uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #setBuffer(ByteBuf) */
|
||||
@Deprecated
|
||||
public void setBuffer (byte[] bytes) {
|
||||
throw new UnsupportedOperationException("This input does not used a byte[], see #setByteBuf(ByteBuf).");
|
||||
}
|
||||
|
@ -133,6 +135,7 @@ class ByteBufInput extends Input {
|
|||
/** Throws {@link UnsupportedOperationException} because this input uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #setBuffer(ByteBuf) */
|
||||
@Deprecated
|
||||
public void setBuffer (byte[] bytes, int offset, int count) {
|
||||
throw new UnsupportedOperationException("This input does not used a byte[], see #setByteBuf().");
|
||||
}
|
||||
|
|
|
@ -124,6 +124,7 @@ public class ByteBufOutput extends Output {
|
|||
/** Throws {@link UnsupportedOperationException} because this output uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #getByteBuf() */
|
||||
@Deprecated
|
||||
public byte[] getBuffer () {
|
||||
throw new UnsupportedOperationException("This buffer does not used a byte[], see #getByteBuffer().");
|
||||
}
|
||||
|
@ -131,6 +132,7 @@ public class ByteBufOutput extends Output {
|
|||
/** Throws {@link UnsupportedOperationException} because this output uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #getByteBuf() */
|
||||
@Deprecated
|
||||
public void setBuffer (byte[] buffer) {
|
||||
throw new UnsupportedOperationException("This buffer does not used a byte[], see #setByteBuffer(ByteBuffer).");
|
||||
}
|
||||
|
@ -138,6 +140,7 @@ public class ByteBufOutput extends Output {
|
|||
/** Throws {@link UnsupportedOperationException} because this output uses a ByteBuffer, not a byte[].
|
||||
* @deprecated
|
||||
* @see #getByteBuf() */
|
||||
@Deprecated
|
||||
public void setBuffer (byte[] buffer, int maxBufferSize) {
|
||||
throw new UnsupportedOperationException("This buffer does not used a byte[], see #setByteBuffer(ByteBuffer).");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user