diff --git a/src/main/java/org/javamoney/moneta/internal/DefaultRoundingProvider.java b/src/main/java/org/javamoney/moneta/internal/DefaultRoundingProvider.java index e17e6b037..23e964d04 100644 --- a/src/main/java/org/javamoney/moneta/internal/DefaultRoundingProvider.java +++ b/src/main/java/org/javamoney/moneta/internal/DefaultRoundingProvider.java @@ -30,12 +30,12 @@ */ public class DefaultRoundingProvider implements RoundingProviderSpi { - private static final String DEFAULT_ROUNDING_ID = "default"; - private Set roundingsIds = new HashSet<>(); + private static final String DEFAULT_ROUNDING_NAME = "default"; + private Set roundingsNames = new HashSet<>(); public DefaultRoundingProvider() { - roundingsIds.add(DEFAULT_ROUNDING_ID); - roundingsIds = Collections.unmodifiableSet(roundingsIds); + roundingsNames.add(DEFAULT_ROUNDING_NAME); + roundingsNames = Collections.unmodifiableSet(roundingsNames); } @Override @@ -77,7 +77,7 @@ public MonetaryRounding getRounding(RoundingQuery roundingQuery) { return new DefaultRounding(scale, mc.getRoundingMode()); } else if (roundingMode != null) { return new DefaultRounding(scale, roundingMode); - } else if (roundingQuery.getRoundingName() != null && DEFAULT_ROUNDING_ID.equals(roundingQuery.getRoundingName())) { + } else if (roundingQuery.getRoundingName() != null && DEFAULT_ROUNDING_NAME.equals(roundingQuery.getRoundingName())) { return Monetary.getDefaultRounding(); } return null; @@ -86,7 +86,7 @@ public MonetaryRounding getRounding(RoundingQuery roundingQuery) { @Override public Set getRoundingNames() { - return roundingsIds; + return roundingsNames; } } \ No newline at end of file