Skip to content

Commit 35672a5

Browse files
committed
JAVAMONEY-83: Changed context key type from Object to String, removed methods containing defaults.
1 parent 8d62329 commit 35672a5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/java/org/javamoney/moneta/spi/LazyBoundCurrencyConversion.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*

src/test/java/org/javamoney/moneta/function/CurrencyConversionMock.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import javax.money.convert.ConversionContext;
1212
import javax.money.convert.CurrencyConversion;
1313
import javax.money.convert.ExchangeRate;
14+
import javax.money.convert.ExchangeRateProvider;
1415

1516
import 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

0 commit comments

Comments
 (0)