diff --git a/java/memory/src/main/java/io/netty/buffer/NettyArrowBuf.java b/java/memory/src/main/java/io/netty/buffer/NettyArrowBuf.java index 56221a95d54d6..2b831a671cf63 100644 --- a/java/memory/src/main/java/io/netty/buffer/NettyArrowBuf.java +++ b/java/memory/src/main/java/io/netty/buffer/NettyArrowBuf.java @@ -212,7 +212,7 @@ public ByteBuffer nioBuffer() { @Override public ByteBuffer nioBuffer(int index, int length) { - checkIndex(index, length); + chk(index, length); final ByteBuffer buffer = getDirectBuffer(); buffer.position(index).limit(index + length); return buffer; diff --git a/java/pom.xml b/java/pom.xml index 9e4afcfa5464f..ffa1503a02ddf 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -381,6 +381,7 @@ true ${project.build.directory} + true