Skip to content

Commit

Permalink
Use UNNECESSARY as default rounding mode
Browse files Browse the repository at this point in the history
Major motivation for the change is fact that UNNECESSARY rounding mode
is more conservative (safer) than HALF_UP.
  • Loading branch information
losipiuk committed May 28, 2020
1 parent 8b4e165 commit 2fad53f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class OracleConfig
{
private boolean synonymsEnabled;
private Integer defaultNumberScale;
private RoundingMode numberRoundingMode = RoundingMode.HALF_UP;
private RoundingMode numberRoundingMode = RoundingMode.UNNECESSARY;

@NotNull
public boolean isSynonymsEnabled()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void testDefaults()
assertRecordedDefaults(recordDefaults(OracleConfig.class)
.setSynonymsEnabled(false)
.setDefaultNumberScale(null)
.setNumberRoundingMode(RoundingMode.HALF_UP));
.setNumberRoundingMode(RoundingMode.UNNECESSARY));
}

@Test
Expand Down

0 comments on commit 2fad53f

Please sign in to comment.