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

Commit 45dbdf0

Browse files
committed
- Fixed javadoc errors.
- Added release notes/refs. - Release build.
1 parent 0ea485d commit 45dbdf0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+354
-302
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ This repository contains the Java 7 compatible Moneta reference implementation.
55

66
This module is licenced under the the [Apache 2 Licence](https://www.apache.org/licenses/LICENSE-2.0.html).
77

8+
Release Notes
9+
-------------
10+
11+
* **[1.0](https://github.com/JavaMoney/jsr354-ri-bp/releases/tag/1.0)** Initial revision along the API.
12+
* **[1.1](https://github.com/JavaMoney/jsr354-ri-bp/releases/tag/1.1)** First Patch release.
13+
* **[1.2](https://github.com/JavaMoney/jsr354-ri-bp/releases/tag/1.2)** Minor Patch release.
14+
15+
816
[![Build Status](https://api.travis-ci.org/JavaMoney/jsr354-ri-bp.png?branch=master)](https://travis-ci.org/JavaMoney/jsr354-ri-bp) [![License](http://img.shields.io/badge/license-Apache2-red.svg)](http://opensource.org/licenses/apache-2.0)
917
[![Reference Status](https://www.versioneye.com/java/org.javamoney:moneta-bp/reference_badge.svg?style=flat)](https://www.versioneye.com/java/org.javamoney:moneta-bp/references)
1018

pom.xml

Lines changed: 140 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
<artifactId>moneta-bp</artifactId>
2121
<packaging>bundle</packaging>
22-
<version>1.1.1-SNAPSHOT</version>
22+
<version>1.2</version>
2323
<name>Moneta (JSR 354 RI) for Java 7</name>
2424

2525
<description>JSR 354 provides an API for representing, transporting, and performing comprehensive calculations with
@@ -36,7 +36,7 @@
3636
</licenses>
3737

3838
<properties>
39-
<jsr.version>1.0.1</jsr.version>
39+
<jsr.version>1.0.3</jsr.version>
4040
<jdkVersion>1.7</jdkVersion>
4141
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
4242
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
@@ -236,69 +236,6 @@
236236
</execution>
237237
</executions>
238238
</plugin>
239-
<plugin>
240-
<groupId>com.github.siom79.japicmp</groupId>
241-
<artifactId>japicmp-maven-plugin</artifactId>
242-
<version>0.6.2</version>
243-
<configuration>
244-
<oldVersion>
245-
<dependency>
246-
<groupId>${project.groupId}</groupId>
247-
<artifactId>${project.artifactId}</artifactId>
248-
<version>1.0</version>
249-
<type>jar</type>
250-
</dependency>
251-
</oldVersion>
252-
<newVersion>
253-
<file>
254-
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
255-
</file>
256-
</newVersion>
257-
<parameter>
258-
<onlyModified>false</onlyModified>
259-
<includes>
260-
<include>org.javamoney.moneta</include>
261-
<include>org.javamoney.moneta.convert</include>
262-
<include>org.javamoney.moneta.format</include>
263-
<include>org.javamoney.moneta.function</include>
264-
<include>org.javamoney.moneta.spi</include>
265-
</includes>
266-
<excludes>
267-
<exclude>org.javamoney.moneta.internal</exclude>
268-
<exclude>org.javamoney.moneta.internal.convert</exclude>
269-
<exclude>org.javamoney.moneta.internal.format</exclude>
270-
<exclude>org.javamoney.moneta.internal.loader</exclude>
271-
</excludes>
272-
<accessModifier>protected</accessModifier>
273-
<breakBuildOnModifications>false</breakBuildOnModifications>
274-
<breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications>
275-
<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
276-
<includeSynthetic>false</includeSynthetic>
277-
<ignoreMissingClasses>false</ignoreMissingClasses>
278-
<skipPomModules>true</skipPomModules>
279-
<!--<htmlStylesheet>path/to/stylesheet.css</htmlStylesheet>-->
280-
<htmlTitle>JSR 354 - Java 7 RI Compatibility Report</htmlTitle>
281-
<noAnnotations>false</noAnnotations>
282-
<ignoreNonResolvableArtifacts>false</ignoreNonResolvableArtifacts>
283-
</parameter>
284-
<dependencies>
285-
<dependency>
286-
<groupId>org.apache.commons</groupId>
287-
<artifactId>commons-math3</artifactId>
288-
<version>3.4</version>
289-
</dependency>
290-
</dependencies>
291-
<skip>false</skip>
292-
</configuration>
293-
<executions>
294-
<execution>
295-
<phase>verify</phase>
296-
<goals>
297-
<goal>cmp</goal>
298-
</goals>
299-
</execution>
300-
</executions>
301-
</plugin>
302239
<plugin>
303240
<artifactId>maven-site-plugin</artifactId>
304241
<version>3.3</version>
@@ -557,5 +494,143 @@
557494
</plugins>
558495
</build>
559496
</profile>
497+
<profile>
498+
<id>release-sign-artifacts</id>
499+
<activation>
500+
<property>
501+
<name>performRelease</name>
502+
<value>true</value>
503+
</property>
504+
</activation>
505+
<build>
506+
<pluginManagement>
507+
<plugins>
508+
<plugin>
509+
<groupId>org.apache.maven.plugins</groupId>
510+
<artifactId>maven-gpg-plugin</artifactId>
511+
<version>1.4</version>
512+
</plugin>
513+
</plugins>
514+
</pluginManagement>
515+
<plugins>
516+
<plugin>
517+
<groupId>org.apache.maven.plugins</groupId>
518+
<artifactId>maven-gpg-plugin</artifactId>
519+
<configuration>
520+
<defaultKeyring>false</defaultKeyring>
521+
<keyname>11A1E4D6</keyname>
522+
</configuration>
523+
<executions>
524+
<execution>
525+
<id>sign-artifacts</id>
526+
<phase>verify</phase>
527+
<goals>
528+
<goal>sign</goal>
529+
</goals>
530+
</execution>
531+
</executions>
532+
</plugin>
533+
<plugin>
534+
<groupId>org.apache.maven.plugins</groupId>
535+
<artifactId>maven-javadoc-plugin</artifactId>
536+
<executions>
537+
<execution>
538+
<id>attach-javadocs</id>
539+
<goals>
540+
<goal>jar</goal>
541+
</goals>
542+
</execution>
543+
</executions>
544+
</plugin>
545+
<plugin>
546+
<groupId>org.apache.maven.plugins</groupId>
547+
<artifactId>maven-source-plugin</artifactId>
548+
<executions>
549+
<execution>
550+
<id>attach-sources</id>
551+
<goals>
552+
<goal>jar</goal>
553+
</goals>
554+
</execution>
555+
</executions>
556+
</plugin>
557+
</plugins>
558+
</build>
559+
</profile>
560+
<profile>
561+
<id>compareapi</id>
562+
<build>
563+
<plugins>
564+
<plugin>
565+
<!-- this plugin requires the following maven opts to be set in Java 9 and beyond:
566+
- -add-modules java.xml.bind -->
567+
<groupId>com.github.siom79.japicmp</groupId>
568+
<artifactId>japicmp-maven-plugin</artifactId>
569+
<version>0.11.1</version>
570+
<configuration>
571+
<oldVersion>
572+
<dependency>
573+
<groupId>${project.groupId}</groupId>
574+
<artifactId>${project.artifactId}</artifactId>
575+
<version>1.0</version>
576+
<type>jar</type>
577+
</dependency>
578+
</oldVersion>
579+
<newVersion>
580+
<file>
581+
<path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path>
582+
</file>
583+
</newVersion>
584+
<parameter>
585+
<onlyModified>false</onlyModified>
586+
<includes>
587+
<include>org.javamoney.moneta</include>
588+
<include>org.javamoney.moneta.convert</include>
589+
<include>org.javamoney.moneta.format</include>
590+
<include>org.javamoney.moneta.function</include>
591+
<include>org.javamoney.moneta.spi</include>
592+
</includes>
593+
<excludes>
594+
<exclude>org.javamoney.moneta.internal</exclude>
595+
<exclude>org.javamoney.moneta.internal.convert</exclude>
596+
<exclude>org.javamoney.moneta.internal.format</exclude>
597+
<exclude>org.javamoney.moneta.internal.loader</exclude>
598+
</excludes>
599+
<accessModifier>protected</accessModifier>
600+
<breakBuildOnModifications>false</breakBuildOnModifications>
601+
<breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications>
602+
<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
603+
<includeSynthetic>false</includeSynthetic>
604+
<ignoreMissingClasses>false</ignoreMissingClasses>
605+
<skipPomModules>true</skipPomModules>
606+
<!--<htmlStylesheet>path/to/stylesheet.css</htmlStylesheet>-->
607+
<htmlTitle>JSR 354 - Java 7 RI Compatibility Report</htmlTitle>
608+
<noAnnotations>false</noAnnotations>
609+
<ignoreNonResolvableArtifacts>false</ignoreNonResolvableArtifacts>
610+
</parameter>
611+
<dependencies>
612+
<dependency>
613+
<groupId>org.apache.commons</groupId>
614+
<artifactId>commons-math3</artifactId>
615+
<version>3.4</version>
616+
</dependency>
617+
<dependency>
618+
619+
</dependency>
620+
</dependencies>
621+
<skip>false</skip>
622+
</configuration>
623+
<executions>
624+
<execution>
625+
<phase>verify</phase>
626+
<goals>
627+
<goal>cmp</goal>
628+
</goals>
629+
</execution>
630+
</executions>
631+
</plugin>
632+
</plugins>
633+
</build>
634+
</profile>
560635
</profiles>
561636
</project>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* reversing a ExchangeRate one must access an {@link javax.money.convert.ExchangeRateProvider} and
6060
* query for the reverse rate.</li>
6161
* </ul>
62-
* <p>
62+
*
6363
* The class also implements {@link Comparable} to allow sorting of multiple
6464
* exchange rates using the following sorting order;
6565
* <ul>
@@ -68,7 +68,7 @@
6868
* <li>base currency</li>
6969
* <li>term currency</li>
7070
* </ul>
71-
* <p>
71+
*
7272
* Finally ExchangeRate is modeled as an immutable and thread safe type. Also
7373
* exchange rates are {@link java.io.Serializable}, hereby serializing in the following
7474
* form and order:
@@ -209,11 +209,11 @@ public final List<ExchangeRate> getExchangeRateChain() {
209209

210210
/**
211211
* Allows to evaluate if this exchange rate is a derived exchange rate.
212-
* <p>
212+
*
213213
* Derived exchange rates are defined by an ordered list of subconversions
214214
* with intermediate steps, whereas a direct conversion is possible in one
215215
* steps.
216-
* <p>
216+
*
217217
* This method always returns {@code true}, if the chain contains more than
218218
* one rate. Direct rates, have also a chain, but with exact one rate.
219219
*

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* Evaluates the default {@link MonetaryContext} to be used for {@link Money}.
3232
* The default {@link MonetaryContext} can be configured by adding a file
3333
* {@code /javamoney.properties} from the classpath with the following content:
34-
* <p>
35-
* <p>
34+
*
35+
*
3636
* <pre>
3737
* # Default MathContext for Money
3838
* #-------------------------------
@@ -41,7 +41,7 @@
4141
* org.javamoney.moneta.Money.defaults.precision=256
4242
* org.javamoney.moneta.Money.defaults.roundingMode=HALF_EVEN
4343
* </pre>
44-
* <p>
44+
*
4545
* Hereby the roundingMode constants are the same as defined on
4646
* {@link RoundingMode}.
4747
*/

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
import javax.money.convert.ExchangeRateProviderSupplier;
1919

2020
/**
21-
* <p>
21+
*
2222
* This enum contains all implementation of moneta. Using this enum will easier
2323
* to choose an available implementation.
24-
* </p>
25-
* <code>ExchangeRateProvider provider = MonetaryConversions.getExchangeRateProvider(ExchangeRateType.ECB);<code>
24+
*
25+
* {@code ExchangeRateProvider provider = MonetaryConversions.getExchangeRateProvider(ExchangeRateType.ECB);}
2626
*
2727
* @author otaviojava
2828
* @deprecated Use org.javamoney.moneta.convert.ExchangeRateType instead

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,47 +40,47 @@
4040

4141
/**
4242
* <code>long</code> based implementation of {@link MonetaryAmount}.This class internally uses a
43-
* single long number as numeric representation, which basically is interpreted as minor units.<p>
43+
* single long number as numeric representation, which basically is interpreted as minor units.
4444
* It suggested to have a performance advantage of a 10-15 times faster compared to {@link Money},
4545
* which internally uses {@link BigDecimal}. Nevertheless this comes with a price of less precision.
4646
* As an example performing the following calculation one million times, results in slightly
4747
* different results:
48-
* </p>
48+
*
4949
* <pre><code>
5050
* Money money1 = money1.add(Money.of("EUR", 1234567.3444));
5151
* money1 = money1.subtract(Money.of("EUR", 232323));
5252
* money1 = money1.multiply(3.4);
5353
* money1 = money1.divide(5.456);
5454
* </code></pre>
55-
* <p>
55+
*
5656
* Executed one million (1000000) times this results in {@code EUR 1657407.962529182}, calculated in
5757
* 3680 ms, or roughly 3ns/loop.
58-
* <p>
58+
*
5959
* whereas
60-
* </p>
60+
*
6161
* <pre><code>
6262
* FastMoney money1 = money1.add(FastMoney.of("EUR", 1234567.3444));
6363
* money1 = money1.subtract(FastMoney.of("EUR", 232323));
6464
* money1 = money1.multiply(3.4);
6565
* money1 = money1.divide(5.456);
6666
* </code></pre>
67-
* <p>
67+
*
6868
* executed one million (1000000) times results in {@code EUR 1657407.96251}, calculated in 179 ms,
6969
* which is less than 1ns/loop.
70-
* </p><p>
70+
*
7171
* Also note than mixing up types may drastically change the performance behavior. E.g. replacing the
7272
* code above with the following: *
73-
* </p>
73+
*
7474
* <pre><code>
7575
* FastMoney money1 = money1.add(Money.of("EUR", 1234567.3444));
7676
* money1 = money1.subtract(FastMoney.of("EUR", 232323));
7777
* money1 = money1.multiply(3.4);
7878
* money1 = money1.divide(5.456);
7979
* </code></pre>
80-
* <p>
80+
*
8181
* executed one million (1000000) times may execute significantly longer, since monetary amount type
8282
* conversion is involved.
83-
* </p><p>
83+
*
8484
* Basically, when mixing amount implementations, the performance of the amount, on which most of
8585
* the operations are operated, has the most significant impact on the overall performance behavior.
8686
*

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@
4141
/**
4242
* Default immutable implementation of {@link MonetaryAmount} based
4343
* on {@link BigDecimal} as numeric representation.
44-
* <p>
44+
*
4545
* As required by {@link MonetaryAmount} this class is final, thread-safe,
4646
* immutable and serializable.
47-
* </p><p>
47+
*
4848
* This class can be configured with an arbitrary {@link MonetaryContext}. The
4949
* default {@link MonetaryContext} used models by default the same settings as
5050
* {@link MathContext#DECIMAL64} . This default {@link MonetaryContext} can also
5151
* be reconfigured by adding a file {@code /javamoney.properties} to the
5252
* classpath, with the following content:
53-
* </p>
53+
*
5454
* <pre>
5555
* # Default MathContext for Money
5656
* #-------------------------------

0 commit comments

Comments
 (0)