Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
Signed-off-by: Rishab Nahata <rnnahata@amazon.com>
  • Loading branch information
imRishN committed Jun 28, 2023
1 parent 6be9337 commit cea8789
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
public abstract class AbstractBytesReference implements BytesReference {

private Integer hash = null; // we cache the hash of this reference since it can be quite costly to re-calculated it
static final int MAX_UTF16_LENGTH = Integer.MAX_VALUE >> 1;
private static final int MAX_UTF16_LENGTH = Integer.MAX_VALUE >> 1;

@Override
public int getInt(int index) {
Expand Down Expand Up @@ -82,7 +82,7 @@ public void writeTo(OutputStream os) throws IOException {
}
}

public int getMaxUTF16Length() {
protected int getMaxUTF16Length() {
return MAX_UTF16_LENGTH;
}

Expand Down

0 comments on commit cea8789

Please sign in to comment.