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

Commit 4e6bf86

Browse files
committed
Fixed compatibility issues between bp and Java 8 API.
1 parent 17f18c7 commit 4e6bf86

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/java/org/javamoney/moneta/RoundedMoney.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public final class RoundedMoney implements MonetaryAmount, Comparable<MonetaryAm
5656
/**
5757
* serialVersionUID.
5858
*/
59-
private static final long serialVersionUID = 366517590511294389L;
59+
private static final long serialVersionUID = -6716367273185192901L;
6060
/**
6161
* The default {@link MonetaryContext} applied.
6262
*/

src/main/java/org/javamoney/moneta/ToStringMonetaryAmountFormat.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ MonetaryAmount to(ParserMonetaryAmount amount) {
114114
}
115115
};
116116

117+
private static final long serialVersionUID = 6606016328162974467L;
117118
abstract MonetaryAmount to(ParserMonetaryAmount amount);
118119
}
119120

src/main/java/org/javamoney/moneta/convert/ExchangeRateType.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.javamoney.moneta.internal.convert.ECBCurrentRateProvider;
2121
import org.javamoney.moneta.internal.convert.ECBHistoric90RateProvider;
2222
import org.javamoney.moneta.internal.convert.ECBHistoricRateProvider;
23-
//import org.javamoney.moneta.internal.convert.IMFHistoricRateProvider;
2423
import org.javamoney.moneta.internal.convert.IMFRateProvider;
2524
import org.javamoney.moneta.internal.convert.IdentityRateProvider;
2625

@@ -36,6 +35,7 @@
3635
* @since 1.0.1
3736
*/
3837
public enum ExchangeRateType implements ExchangeRateProviderSupplier {
38+
3939
/**
4040
* Exchange rate to the European Central Bank. Uses the
4141
* {@link ECBCurrentRateProvider} implementation.
@@ -48,7 +48,7 @@ public enum ExchangeRateType implements ExchangeRateProviderSupplier {
4848
IMF("IMF", "Exchange rate to the International Monetary Fond."),
4949
/**
5050
* Exchange rate to the International Monetary Fond from historic. Uses the
51-
* {@link IMFHistoricRateProvider} implementation.
51+
* {@code IMFHistoricRateProvider} implementation.
5252
*/
5353
IMF_HIST("IMF-HIST", "Exchange rate to the International Monetary Fond that retrieve historical information on lazy way."),
5454
/**
@@ -70,6 +70,8 @@ public enum ExchangeRateType implements ExchangeRateProviderSupplier {
7070
"IDENT",
7171
"Exchange rate rate with factor one for identical base/term currencies");
7272

73+
private static final long serialVersionUID = 7769702054407198263L;
74+
7375
private final String type;
7476

7577
private final String description;

0 commit comments

Comments
 (0)