You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/23 12:28:50 UTC
[commons-imaging] 02/07: No need to nest
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit 0e282bae0079b4308029d40632549352e2d97292
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Oct 23 08:20:36 2023 -0400
No need to nest
---
src/main/java/org/apache/commons/imaging/common/ByteConversions.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/imaging/common/ByteConversions.java b/src/main/java/org/apache/commons/imaging/common/ByteConversions.java
index 4ecb679d..d53f7151 100644
--- a/src/main/java/org/apache/commons/imaging/common/ByteConversions.java
+++ b/src/main/java/org/apache/commons/imaging/common/ByteConversions.java
@@ -358,11 +358,10 @@ public final class ByteConversions {
return (byte0 << 56) | (byte1 << 48) | (byte2 << 40)
| (byte3 << 32) | (byte4 << 24) | (byte5 << 16)
| (byte6 << 8) | byte7 ;
- } else {
- return (byte7 << 56) | (byte6 << 48) | (byte5 << 40)
+ }
+ return (byte7 << 56) | (byte6 << 48) | (byte5 << 40)
| (byte4 << 32) | (byte3 << 24) | (byte2 << 16)
| (byte1 << 8) | byte0;
- }
}
/**