You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/10/08 01:28:09 UTC

[iotdb] branch ISSUE7522 created (now 1df66d4f2d)

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

haonan pushed a change to branch ISSUE7522
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 1df66d4f2d [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN

This branch includes the following new commits:

     new 1df66d4f2d [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 1df66d4f2d225af45861012f86b7d5d8c9508031
Author: HTHou <hh...@outlook.com>
AuthorDate: Sat Oct 8 09:27:50 2022 +0800

    [ISSUE-7522] Fix wrong annotation of BytesUtil.getByteN
---
 tsfile/src/main/java/org/apache/iotdb/tsfile/utils/BytesUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 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..bc0bff0b94 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,7 +739,7 @@ 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"
    * 0010000).
@@ -758,7 +758,7 @@ 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
    * is 1, return 18({00010010}) if offset is 0, value is 0, return 16(no change).