Skip to content

Commit

Permalink
fixed small things from PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Dec 8, 2023
1 parent b870b3f commit 7f19b5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,6 @@ public TypedData(Object data, String name) {
public String toString() {
if (type == DataTypes.UNSIGNED_LONG && data instanceof Long longData) {
return type.toString() + "(" + NumericUtils.unsignedLongAsBigInteger(longData).toString() + ")";
}
}
return type.toString() + "(" + (data == null ? "null" : data.toString()) + ")";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static Iterable<Object[]> parameters() {
suppliers,
read,
DataTypes.UNSIGNED_LONG,
(n) -> n,
n -> n,
BigInteger.ZERO,
UNSIGNED_LONG_MAX,
List.of()
Expand Down Expand Up @@ -118,7 +118,7 @@ public static Iterable<Object[]> parameters() {
suppliers,
evaluatorName.apply("Long"),
DataTypes.UNSIGNED_LONG,
(n) -> BigInteger.valueOf(n),
BigInteger::valueOf,
0L,
Long.MAX_VALUE,
List.of()
Expand All @@ -142,7 +142,7 @@ public static Iterable<Object[]> parameters() {
suppliers,
evaluatorName.apply("Int"),
DataTypes.UNSIGNED_LONG,
(n) -> BigInteger.valueOf(n),
BigInteger::valueOf,
0,
Integer.MAX_VALUE,
List.of()
Expand Down

0 comments on commit 7f19b5a

Please sign in to comment.