diff --git a/src/dorkbox/network/pipeline/ByteBufInput.java b/src/dorkbox/network/pipeline/ByteBufInput.java index da0c3fc7..208d6381 100644 --- a/src/dorkbox/network/pipeline/ByteBufInput.java +++ b/src/dorkbox/network/pipeline/ByteBufInput.java @@ -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()."); } diff --git a/src/dorkbox/network/pipeline/ByteBufOutput.java b/src/dorkbox/network/pipeline/ByteBufOutput.java index 16a6b9c2..2077987b 100644 --- a/src/dorkbox/network/pipeline/ByteBufOutput.java +++ b/src/dorkbox/network/pipeline/ByteBufOutput.java @@ -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)."); }