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 376fc9b9f..ff7c50069 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 @@ -1828,7 +1828,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); } @@ -1889,7 +1889,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); } @@ -1903,7 +1903,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);