Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 0dfc3b0

Browse files
committed
JAVAMONEY-99: Fixed name clashes.
1 parent 26acefe commit 0dfc3b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/javamoney/moneta/internal/DefaultRoundingProvider.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
*/
3232
public 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
}

0 commit comments

Comments
 (0)