Skip to content

Commit 1b4e159

Browse files
committed
spotless
Signed-off-by: Luis Pinto <[email protected]>
1 parent 2a23768 commit 1b4e159

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bytes/src/main/java/org/apache/tuweni/bytes/v2/MutableBytes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ public void set(int index, byte b) {
395395
checkElementIndex(index, length);
396396
if (index > (length - 1)) {
397397
throw new IndexOutOfBoundsException(
398-
format(
399-
"Value of size %s has not enough bytes to write a 4 bytes int from index %s",
400-
length, index));
398+
format(
399+
"Value of size %s has not enough bytes to write a 4 bytes int from index %s",
400+
length, index));
401401
}
402402
bytesArray[offset + index] = b;
403403
}

units/src/main/java/org/apache/tuweni/units/bigints/UInt256.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public static UInt256 valueOf(BigInteger value) {
103103
* @throws IllegalArgumentException if {@code bytes.size() > 32}.
104104
*/
105105
public static UInt256 fromBytes(final Bytes bytes) {
106+
//TODO: add a fast path for if Bytes.getImpl returns a UInt256 type
106107
if (bytes instanceof UInt256) {
107108
return (UInt256) bytes;
108109
}

0 commit comments

Comments
 (0)