Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jan 13, 2025
1 parent 2097d8e commit b1fe682
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/com/alibaba/fastjson2/util/IOUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -1750,8 +1750,7 @@ private static int reverseBytesExpand(int i) {

private static long utf16ReverseBytesExpand(long i) {
// i = Long.reverseBytes(Long.expand(i, 0x00F000F0_00F000F0));
i = ((i & 0xF000L) >> 12) | ((i & 0xF00L) << 8) | ((i & 0xF0L) << 28) | ((i & 0xFL) << 48);
return i;
return ((i & 0xF000L) >> 12) | ((i & 0xF00L) << 8) | ((i & 0xF0L) << 28) | ((i & 0xFL) << 48);
}

private static int convEndian(boolean big, int n) {
Expand Down

0 comments on commit b1fe682

Please sign in to comment.