File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
main/java/org/javamoney/moneta/spi
test/java/org/javamoney/moneta/function Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ public ExchangeRate getExchangeRate(MonetaryAmount amount) {
5151 return this .rateProvider .getExchangeRate (amount .getCurrency (), getCurrency ());
5252 }
5353
54+ @ Override
55+ public ExchangeRateProvider getExchangeRateProvider () {
56+ return this .rateProvider ;
57+ }
58+
5459 /*
5560 * (non-Javadoc)
5661 *
Original file line number Diff line number Diff line change 1111import javax .money .convert .ConversionContext ;
1212import javax .money .convert .CurrencyConversion ;
1313import javax .money .convert .ExchangeRate ;
14+ import javax .money .convert .ExchangeRateProvider ;
1415
1516import org .javamoney .moneta .Money ;
1617
@@ -58,6 +59,11 @@ public ExchangeRate getExchangeRate(MonetaryAmount sourceAmount) {
5859 return null ;
5960 }
6061
62+ @ Override
63+ public ExchangeRateProvider getExchangeRateProvider () {
64+ return null ;
65+ }
66+
6167 private class DollarConversation implements Conversation {
6268 private CurrencyUnit currency = DOLLAR ;
6369
You can’t perform that action at this time.
0 commit comments