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

Commit

Permalink
Initial commit of backport for Java 7. Not yet finished...
Browse files Browse the repository at this point in the history
  • Loading branch information
atsticks committed Mar 11, 2015
1 parent 922c8af commit c80447d
Show file tree
Hide file tree
Showing 187 changed files with 24,178 additions and 196 deletions.
14 changes: 9 additions & 5 deletions .gitignore
@@ -1,6 +1,10 @@
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
/doc
moneta.iml
jsr354-ri.iml
.classpath
-project
/.resourceCache
/.project
/.idea

6 changes: 6 additions & 0 deletions .travis.yml
@@ -0,0 +1,6 @@
language: java
jdk:
- openjdk6

after_success:
- mvn clean test jacoco:report org.eluder.coveralls:coveralls-maven-plugin:jacoco -DsourceEncoding=UTF-8
371 changes: 180 additions & 191 deletions LICENSE

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions README.md
@@ -0,0 +1,20 @@
JSR 354: Money and Currency Reference Implementation
====================================================

This respoitory contains the Java 7 compatible backport of the reference implementation. We strongly recommend the
Java 8 based version to be used to enjoy all benefits provided by this JSR.

JSR 354 provides an API for representing, transporting, and performing comprehensive calculations with Money and Currency.
This module implements JSR 354 Money & Currency. Hereby basic implementations of amounts, currency and roundings are provided.

See the JCP detail page:
http://jcp.org/en/jsr/detail?id=354

Or the GitHub page:
http://javamoney.github.io/ri.html

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

[![Build Status](https://api.travis-ci.org/JavaMoney/jsr354-ri.png?branch=master)](https://travis-ci.org/JavaMoney/jsr354-ri) [![License](http://img.shields.io/badge/license-Apache2-red.svg)](http://opensource.org/licenses/apache-2.0)

[![Built with Maven](http://maven.apache.org/images/logos/maven-feather.png)](http://maven.org/)
8 changes: 8 additions & 0 deletions checkstyle-suppressions.xml
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE suppressions PUBLIC
"-//Puppy Crawl//DTD Suppressions 1.0//EN"
"http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">

<suppressions>
<suppress checks=".*" files=".*Test" />
</suppressions>
124 changes: 124 additions & 0 deletions checkstyle.xml
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">

<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: JSR 354
Description: none
-->
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="FileContentsHolder"/>
<module name="AvoidStarImport"/>
<module name="EmptyBlock">
<property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT"/>
</module>
<module name="EmptyForInitializerPad">
<property name="option" value="space"/>
</module>
<module name="EmptyForIteratorPad">
<property name="option" value="space"/>
</module>
<module name="EqualsHashCode"/>
<module name="IllegalImport"/>
<module name="IllegalInstantiation">
<property name="classes" value="Boolean"/>
</module>
<module name="InnerAssignment"/>
<module name="JavadocType">
<property name="scope" value="protected"/>
</module>
<module name="JavadocMethod">
<property name="excludeScope" value="private"/>
<property name="allowUndeclaredRTE" value="true"/>
</module>
<module name="JavadocVariable">
<property name="excludeScope" value="private"/>
</module>
<module name="LeftCurly"/>
<module name="LineLength">
<property name="max" value="140"/>
<property name="tabWidth" value="4"/>
</module>
<module name="LocalFinalVariableName"/>
<module name="LocalVariableName"/>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<module name="MethodLength">
<property name="max" value="300"/>
</module>
<module name="MethodName"/>
<module name="ModifierOrder"/>
<module name="NeedBraces"/>
<module name="NoWhitespaceAfter"/>
<module name="NoWhitespaceBefore">
<property name="allowLineBreaks" value="true"/>
<property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/>
</module>
<module name="OperatorWrap">
<property name="option" value="eol"/>
<property name="tokens" value="ASSIGN, DIV_ASSIGN, PLUS_ASSIGN, MINUS_ASSIGN, STAR_ASSIGN, MOD_ASSIGN, SR_ASSIGN, BSR_ASSIGN, SL_ASSIGN, BXOR_ASSIGN, BOR_ASSIGN, BAND_ASSIGN"/>
</module>
<module name="PackageName"/>
<module name="ParameterName"/>
<module name="ParameterNumber">
<property name="max" value="20"/>
</module>
<module name="ParenPad"/>
<module name="RedundantImport"/>
<module name="RedundantModifier"/>
<module name="RightCurly"/>
<module name="TypeName"/>
<module name="TypecastParenPad"/>
<module name="UpperEll"/>
<module name="VisibilityModifier"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround">
<property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LCURLY,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/>
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
</module>
<module name="MissingDeprecated"/>
<module name="MissingOverride"/>
<module name="PackageAnnotation"/>
<module name="CovariantEquals"/>
<module name="DefaultComesLast"/>
<module name="ExplicitInitialization"/>
<module name="FallThrough"/>
<module name="InnerAssignment"/>
<module name="StringLiteralEquality"/>
<module name="GenericWhitespace"/>
<module name="MethodParamPad"/>
<module name="FinalClass"/>
<module name="MutableException"/>
<module name="ArrayTypeStyle"/>
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="caseIndent" value="4"/>
</module>
<module name="UncommentedMain"/>
</module>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CSOFF"/>
<property name="onCommentFormat" value="CSON"/>
</module>
<module name="SuppressionFilter">
<property name="file" value="${basedir}/checkstyle-suppressions.xml"/>
</module>
<module name="FileLength"/>
<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
<property name="severity" value="error"/>
</module>
<module name="NewlineAtEndOfFile"/>
<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="CSIGNORE"/>
<property name="checkFormat" value=".*"/>
<property name="checkC" value="false"/>
</module>
</module>

0 comments on commit c80447d

Please sign in to comment.