This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/develop by this push:
     new d5e87ec7 add final for readData methods (#346)
d5e87ec7 is described below

commit d5e87ec7039250c85d30429dc07040e9db8fb327
Author: shuwenwei <[email protected]>
AuthorDate: Fri Dec 27 09:43:08 2024 +0800

    add final for readData methods (#346)
---
 .../src/main/java/org/apache/tsfile/read/TsFileSequenceReader.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 2f61eb09..127630f3 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 class TsFileSequenceReader implements 
AutoCloseable {
    * @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 @@ public class TsFileSequenceReader implements 
AutoCloseable {
    * @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 @@ public class TsFileSequenceReader implements 
AutoCloseable {
    * @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);

Reply via email to