Skip to content

Commit 8010b4a

Browse files
authored
Merge branch 'JavaMoney:master' into issue-385
2 parents d3fbfae + 980334e commit 8010b4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

moneta-convert/moneta-convert-imf/src/main/java/org/javamoney/moneta/convert/imf/IMFAbstractRateProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private ExchangeRate getExchangeRate(List<ExchangeRate> rates,final LocalDate[]
185185
}
186186
}
187187
final String datesOnErrors = Stream.of(dates).map(date -> date.format(DateTimeFormatter.ISO_LOCAL_DATE)).collect(Collectors.joining(","));
188-
throw new MonetaryException("There is not exchange on day " + datesOnErrors + " to rate to rate on IFMRateProvider.");
188+
throw new MonetaryException("There is not exchange on day " + datesOnErrors + " to rate to rate on IMFRateProvider.");
189189
}
190190
}
191191

moneta-core/src/main/asciidoc/userguide.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,13 +552,13 @@ MonetaryAmount roundedAmount = amt.with(rounding); // uses Monetary.getRounding(
552552

553553
For Swiss Francs also a corresponding cash rounding is accessible. In Switzerland the smallest minor in cash are
554554
5 Rappen, so everything must be rounded to minors dividable by 5. This rounding can be accessed by setting the
555-
+cashRounding=tru+ property, when accessing a currency rounding for CHF:
555+
+cashRounding=true+ property, when accessing a currency rounding for CHF:
556556

557557
[source,java]
558558
.Access Swiss Francs Cash Rounding
559559
--------------------------------------------
560-
MonetaryRounding rounding = Monetary.getRounding(Monetary.getCurrency("CHF"),
561-
RoundingQueryBuilder.of().set("cashRounding", true).build()
560+
MonetaryRounding rounding = Monetary.getRounding(
561+
RoundingQueryBuilder.of().setCurrency(Monetary.getCurrency("CHF")).set("cashRounding", true).build()
562562
);
563563
MonetaryAmount amt = ...;
564564
MonetaryAmount roundedAmount = amt.with(rounding); // amount rounded in CHF cash rounding

0 commit comments

Comments
 (0)