This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/main/java/org/javamoney/moneta/internal Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 3131 */
3232public class DefaultRoundingProvider implements RoundingProviderSpi {
3333
34- public static final String DEFAULT_ROUNDING_ID = "default" ;
35- private Set <String > roundingsIds = new HashSet <>();
34+ private static final String DEFAULT_ROUNDING_NAME = "default" ;
35+ private Set <String > roundingsNames = new HashSet <>();
3636
3737 public DefaultRoundingProvider () {
38- roundingsIds .add (DEFAULT_ROUNDING_ID );
39- roundingsIds = Collections .unmodifiableSet (roundingsIds );
38+ roundingsNames .add (DEFAULT_ROUNDING_NAME );
39+ roundingsNames = Collections .unmodifiableSet (roundingsNames );
4040 }
4141
4242 @ Override
@@ -78,7 +78,7 @@ public MonetaryRounding getRounding(RoundingQuery roundingQuery) {
7878 return new DefaultRounding (scale , mc .getRoundingMode ());
7979 } else if (roundingMode != null ) {
8080 return new DefaultRounding (scale , roundingMode );
81- } else if (roundingQuery .getRoundingName () != null && DEFAULT_ROUNDING_ID .equals (roundingQuery .getRoundingName ())) {
81+ } else if (roundingQuery .getRoundingName () != null && DEFAULT_ROUNDING_NAME .equals (roundingQuery .getRoundingName ())) {
8282 return Monetary .getDefaultRounding ();
8383 }
8484 return null ;
@@ -87,7 +87,7 @@ public MonetaryRounding getRounding(RoundingQuery roundingQuery) {
8787
8888 @ Override
8989 public Set <String > getRoundingNames () {
90- return roundingsIds ;
90+ return roundingsNames ;
9191 }
9292
9393}
You can’t perform that action at this time.
0 commit comments