Skip to content

Commit

Permalink
spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Apr 3, 2024
1 parent 624d18c commit bf0685d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static long processUnsignedLongs(long lhs, long rhs) {
return longToUnsignedLong(Long.remainderUnsigned(longToUnsignedLong(lhs, true), longToUnsignedLong(rhs, true)), true);
}

@Evaluator(extraName = "Doubles", warnExceptions = {ArithmeticException.class})
@Evaluator(extraName = "Doubles", warnExceptions = { ArithmeticException.class })
static double processDoubles(double lhs, double rhs) {
double value = lhs % rhs;
if (Double.isNaN(value) || Double.isInfinite(value)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ public static List<TestCaseSupplier> forBinaryWithWidening(
String lhsName,
String rhsName,
List<String> warnings,
boolean allowRhsZero) {
boolean allowRhsZero
) {
List<TestCaseSupplier> suppliers = new ArrayList<>();
List<DataType> numericTypes = List.of(DataTypes.INTEGER, DataTypes.LONG, DataTypes.DOUBLE);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public static Iterable<Object[]> parameters() {
"lhs",
"rhs",
List.of(),
true)
true
)
);

// Unsigned Long cases
Expand All @@ -81,7 +82,8 @@ public static Iterable<Object[]> parameters() {
DataTypes.UNSIGNED_LONG,
TestCaseSupplier.ulongCases(BigInteger.ZERO, BigInteger.valueOf(Long.MAX_VALUE), true),
TestCaseSupplier.ulongCases(BigInteger.ZERO, BigInteger.valueOf(Long.MAX_VALUE), true),
List.of(), true
List.of(),
true
)
);

Expand All @@ -96,7 +98,8 @@ public static Iterable<Object[]> parameters() {
EsqlDataTypes.DATE_PERIOD,
TestCaseSupplier.datePeriodCases(),
TestCaseSupplier.datePeriodCases(),
List.of(), true
List.of(),
true
)
);
suppliers.addAll(
Expand All @@ -108,7 +111,8 @@ public static Iterable<Object[]> parameters() {
EsqlDataTypes.TIME_DURATION,
TestCaseSupplier.timeDurationCases(),
TestCaseSupplier.timeDurationCases(),
List.of(), true
List.of(),
true
)
);

Expand All @@ -134,7 +138,8 @@ public static Iterable<Object[]> parameters() {
DataTypes.DATETIME,
TestCaseSupplier.dateCases(),
TestCaseSupplier.datePeriodCases(),
List.of(), true
List.of(),
true
)
);
suppliers.addAll(
Expand All @@ -159,7 +164,8 @@ public static Iterable<Object[]> parameters() {
DataTypes.DATETIME,
TestCaseSupplier.dateCases(),
TestCaseSupplier.timeDurationCases(),
List.of(), true
List.of(),
true
)
);
suppliers.addAll(TestCaseSupplier.dateCases().stream().<TestCaseSupplier>mapMulti((tds, consumer) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public static Iterable<Object[]> parameters() {
"lhs",
"rhs",
List.of(),
false)
false
)
);
suppliers.addAll(
TestCaseSupplier.forBinaryNotCasting(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public static Iterable<Object[]> parameters() {
"lhs",
"rhs",
List.of(),
false)
false
)
);
suppliers.addAll(
TestCaseSupplier.forBinaryNotCasting(
Expand Down

0 comments on commit bf0685d

Please sign in to comment.