diff --git a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java index 2f61eb093..127630f3c 100644 --- a/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java +++ b/java/tsfile/src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java @@ -1925,7 +1925,7 @@ public long fileSize() throws IOException { * @param totalSize the size of data that want to read * @return data that been read. */ - protected ByteBuffer readData(long position, int totalSize) throws IOException { + protected final ByteBuffer readData(long position, int totalSize) throws IOException { return readData(position, totalSize, null); } @@ -1986,7 +1986,7 @@ protected ByteBuffer readData(long position, int totalSize, LongConsumer ioSizeR * @param end the end position of data that want to read * @return data that been read. */ - protected ByteBuffer readData(long start, long end) throws IOException { + protected final ByteBuffer readData(long start, long end) throws IOException { return readData(start, end, null); } @@ -2000,7 +2000,7 @@ protected ByteBuffer readData(long start, long end) throws IOException { * @param ioSizeRecorder can be null * @return data that been read. */ - protected ByteBuffer readData(long start, long end, LongConsumer ioSizeRecorder) + protected final ByteBuffer readData(long start, long end, LongConsumer ioSizeRecorder) throws IOException { try { return readData(start, (int) (end - start), ioSizeRecorder);