Skip to content

Commit cd82797

Browse files
committed
Replaced IntegralMoney with FastMoney
1 parent b45c7e8 commit cd82797

File tree

2 files changed

+39
-10
lines changed

2 files changed

+39
-10
lines changed

pom.xml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,20 +301,50 @@
301301
<plugin>
302302
<groupId>org.asciidoctor</groupId>
303303
<artifactId>asciidoctor-maven-plugin</artifactId>
304+
<version>1.5.2</version>
305+
<dependencies>
306+
<dependency>
307+
<groupId>org.asciidoctor</groupId>
308+
<artifactId>asciidoctorj-pdf</artifactId>
309+
<version>1.5.0-alpha.6</version>
310+
</dependency>
311+
</dependencies>
312+
<configuration>
313+
<sourceDirectory>src/main/asciidoc</sourceDirectory>
314+
<baseDir>${project.basedir}</baseDir>
315+
<imagesDir>src/main/asciidoc/images/</imagesDir>
316+
<embedAssets>true</embedAssets>
317+
<!-- eruby>erubis</eruby -->
318+
</configuration>
304319
<executions>
305320
<execution>
306321
<id>output-html</id>
307-
<phase>generate-resources</phase>
322+
<phase>prepare-package</phase>
308323
<goals>
309324
<goal>process-asciidoc</goal>
310325
</goals>
311326
<configuration>
312327
<outputDirectory>target/docs</outputDirectory>
313-
<sourceHighlighter>highlightjs</sourceHighlighter>
314-
<!-- coderay -->
328+
<sourceHighlighter>coderay</sourceHighlighter>
315329
<backend>html</backend>
316-
<embedAssets>true</embedAssets>
317-
<imagesDir>arc/main/asciidoc/images</imagesDir>
330+
</configuration>
331+
</execution>
332+
<execution>
333+
<id>output-pdf</id>
334+
<phase>prepare-package</phase>
335+
<goals>
336+
<goal>process-asciidoc</goal>
337+
</goals>
338+
<configuration>
339+
<backend>pdf</backend>
340+
<!-- WARNING callout bullets don't yet work with CodeRay -->
341+
<sourceHighlighter>coderay</sourceHighlighter>
342+
<attributes>
343+
<pagenums/>
344+
<toc/>
345+
<idprefix/>
346+
<idseparator>-</idseparator>
347+
</attributes>
318348
</configuration>
319349
</execution>
320350
</executions>
@@ -376,7 +406,6 @@
376406
<plugin>
377407
<groupId>org.codehaus.mojo</groupId>
378408
<artifactId>versions-maven-plugin</artifactId>
379-
<configuration></configuration>
380409
</plugin>
381410
<plugin>
382411
<groupId>org.apache.maven.plugins</groupId>

src/test/java/org/javamoney/moneta/PerformanceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public void comparePerformanceNoRounding() {
6262
end = System.currentTimeMillis();
6363
duration = end - start;
6464
System.out.println("Duration for " + NUM
65-
+ " operations (IntegralMoney/long): "
66-
+ duration + " ms (" + ((duration * 1000) / NUM)
65+
+ " operations (FastMoney/long): "
66+
+ duration + " ms (" + ((duration * 1000) / NUM)
6767
+ " ns per loop) -> "
6868
+ money2);
6969

@@ -78,8 +78,8 @@ public void comparePerformanceNoRounding() {
7878
end = System.currentTimeMillis();
7979
duration = end - start;
8080
System.out.println("Duration for " + NUM
81-
+ " operations (IntegralMoney/FastMoney mixed): "
82-
+ duration + " ms (" + ((duration * 1000) / NUM)
81+
+ " operations (FastMoney/FastMoney mixed): "
82+
+ duration + " ms (" + ((duration * 1000) / NUM)
8383
+ " ns per loop) -> "
8484
+ money3);
8585
}

0 commit comments

Comments
 (0)