diff --git a/protocol/src/main/resources/java/ByteBuffer.java b/protocol/src/main/resources/java/ByteBuffer.java index 461e5e6e..a6ae9961 100644 --- a/protocol/src/main/resources/java/ByteBuffer.java +++ b/protocol/src/main/resources/java/ByteBuffer.java @@ -41,7 +41,7 @@ public class ByteBuffer { return writeOffset; } - public void setwriteOffset(int writeIndex) { + public void setWriteOffset(int writeIndex) { if (writeIndex > buffer.length) { throw new RuntimeException("writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset + ", writerIndex: " + writeOffset + "(expected: 0 <= readerIndex <= writerIndex <= capacity:" + buffer.length); diff --git a/protocol/src/main/resources/kotlin/ByteBuffer.kt b/protocol/src/main/resources/kotlin/ByteBuffer.kt index a12acb81..af592099 100644 --- a/protocol/src/main/resources/kotlin/ByteBuffer.kt +++ b/protocol/src/main/resources/kotlin/ByteBuffer.kt @@ -35,7 +35,7 @@ class ByteBuffer { return writeOffset } - fun setwriteOffset(writeIndex: Int) { + fun setWriteOffset(writeIndex: Int) { if (writeIndex > buffer.size) { throw RuntimeException( "writeIndex[" + writeIndex + "] out of bounds exception: readerIndex: " + readOffset +