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

qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new 54877d7394 [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN 
(#7539)
54877d7394 is described below

commit 54877d739464c8010ae4a283be3b6cfc3ef38bc6
Author: Haonan <[email protected]>
AuthorDate: Sat Oct 8 12:18:48 2022 +0800

    [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN (#7539)
---
 .../src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tsfile/src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java 
b/tsfile/src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java
index cd05f10aed..b2eb3c1a43 100644
--- a/tsfile/src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java
+++ b/tsfile/src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java
@@ -739,9 +739,9 @@ public class BytesUtils {
   }
 
   /**
-   * get one bit in input byte. the offset is from low to high and start with 
0<br>
+   * get one bit in input byte. the offset is from high to low and start with 
0<br>
    * e.g.<br>
-   * data:16(00010000), if offset is 4, return 1(000 "1" 0000) if offset is 7, 
return 0("0"
+   * data:16(00010000), if offset is 3, return 1(000 "1" 0000) if offset is 0, 
return 0("0"
    * 0010000).
    *
    * @param data input byte variable
@@ -758,9 +758,9 @@ public class BytesUtils {
   }
 
   /**
-   * set one bit in input byte. the offset is from low to high and start with 
index 0<br>
+   * set one bit in input byte. the offset is from high to low and start with 
index 0<br>
    * e.g.<br>
-   * data:16(00010000), if offset is 4, value is 0, return 0({000 "0" 0000}) 
if offset is 1, value
+   * data:16(00010000), if offset is 3, value is 0, return 0({000 "0" 0000}) 
if offset is 6, value
    * is 1, return 18({00010010}) if offset is 0, value is 0, return 16(no 
change).
    *
    * @param data input byte variable

Reply via email to