diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/ByteBufVisitor.java b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/ByteBufVisitor.java index 333aeaf877a..196c28f5173 100644 --- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/ByteBufVisitor.java +++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/checksum/ByteBufVisitor.java @@ -1000,58 +1000,58 @@ public String toString(int index, int length, Charset charset) { } @Override - public int hashCode() { + public int compareTo(ByteBuf buffer) { throw new UnsupportedOperationException(); } @Override - public boolean equals(Object obj) { + public ByteBuf retain(int increment) { throw new UnsupportedOperationException(); } @Override - public int compareTo(ByteBuf buffer) { + public int refCnt() { throw new UnsupportedOperationException(); } @Override - public String toString() { + public ByteBuf retain() { throw new UnsupportedOperationException(); } @Override - public ByteBuf retain(int increment) { + public ByteBuf touch() { throw new UnsupportedOperationException(); } @Override - public int refCnt() { + public ByteBuf touch(Object hint) { throw new UnsupportedOperationException(); } @Override - public ByteBuf retain() { + public boolean release() { throw new UnsupportedOperationException(); } @Override - public ByteBuf touch() { + public boolean release(int decrement) { throw new UnsupportedOperationException(); } @Override - public ByteBuf touch(Object hint) { - throw new UnsupportedOperationException(); + public String toString() { + return Object.class.getSimpleName() + '@' + Integer.toHexString(System.identityHashCode(this)); } @Override - public boolean release() { - throw new UnsupportedOperationException(); + public int hashCode() { + return System.identityHashCode(this); } @Override - public boolean release(int decrement) { - throw new UnsupportedOperationException(); + public boolean equals(Object obj) { + return obj == this; } } }