Skip to content

Commit

Permalink
Merge branch 'fix/integertype' into backmerge
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-toepfer committed Feb 13, 2024
2 parents df2be3f + 401a3bc commit 3511540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private boolean isIntegral(final BigDecimal decimal) {
BigDecimal.ZERO.equals(decimal) ||
BigDecimal.ONE.equals(decimal) ||
BigDecimal.TEN.equals(decimal) ||
decimal.stripTrailingZeros().scale() == 0
decimal.stripTrailingZeros().scale() <= 0
);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ static Stream<? extends Arguments> provideWithValidCombinations() {
arguments(InstanceType.NUMBER, Json.createValue(23L)),
arguments(InstanceType.INTEGER, Json.createValue(23L)),
arguments(InstanceType.INTEGER, Json.createValue(10L)),
arguments(InstanceType.INTEGER, Json.createValue(20L)),
arguments(InstanceType.INTEGER, Json.createValue(100L)),
arguments(InstanceType.INTEGER, Json.createValue(1000L)),
arguments(InstanceType.INTEGER, Json.createValue(0.0))
);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</scm>

<properties>
<project.build.outputTimestamp>2024-01-18T19:42:58Z</project.build.outputTimestamp>
<project.build.outputTimestamp>2024-02-13T20:35:47Z</project.build.outputTimestamp>

<maven.compiler.source>17</maven.compiler.source>

Expand Down

0 comments on commit 3511540

Please sign in to comment.