Skip to content

Commit bae01d4

Browse files
committed
9: Java 8 problems in javamoney-calc
Task-Url: http://github.com/JavaMoney/javamoney-lib/issues/issue/9
1 parent c68cf39 commit bae01d4

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

calc/src/main/java/org/javamoney/calc/ConstraintMoney.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ public boolean isEqualTo(MonetaryAmount amount) {
325325
}
326326

327327
@Override
328-
public MonetaryContext getMonetaryContext() {
329-
return this.amount.getMonetaryContext();
328+
public MonetaryContext getContext() {
329+
return this.amount.getContext();
330330
}
331331

332332
@Override

calc/src/main/java/org/javamoney/calc/function/CompoundCalculation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2014, Credit Suisse (Anatole Tresch), Werner Keil.
2+
* Copyright (c) 2012, 2015, Credit Suisse (Anatole Tresch), Werner Keil.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
2323
*
2424
* @param <T> the result type.
2525
*/
26-
public interface CompoundCalculation<T> {
26+
public interface CompoundCalculation<T>{
2727
/**
2828
* Access the input type descriptor.
2929
*
@@ -46,5 +46,4 @@ public interface CompoundCalculation<T> {
4646
* @throws javax.money.MonetaryException if input validation fails, or an other monetary errors occurring.
4747
*/
4848
public T calculate(CompoundValue input);
49-
5049
}

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
5-
<version>1.0-RC2</version>
5+
<version>1.0-RC3</version>
66
<groupId>org.javamoney</groupId>
77
<artifactId>javamoney-parent</artifactId>
88
</parent>
@@ -12,7 +12,7 @@
1212
<packaging>pom</packaging>
1313
<version>0.6-SNAPSHOT</version>
1414
<properties>
15-
<jsr.version>1.0-RC2</jsr.version>
15+
<jsr.version>1.0-RC3</jsr.version>
1616
<jdkVersion>1.8</jdkVersion>
1717
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
1818
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>

0 commit comments

Comments
 (0)