Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use negateExact in FastMoney.negate #221

Merged
merged 1 commit into from Sep 4, 2018

Conversation

marschall
Copy link
Member

@marschall marschall commented Aug 31, 2018

java.lang.Math offers a negateExact method for negating, there is no
need to use Math.multiplyExact -1 to achieve the same.

Also the negate and abs tests are missing a fail in case the methods
do not throw a ArithmeticException.


This change is Reviewable

java.lang.Math offers a negateExact method for negating, there is no
need to use Math.multiplyExact -1 to achieve the same.

Also the negate and abs tests are missing a fail in case the methods
do not throw a ArithmeticException.
@marschall
Copy link
Member Author

This should also fix #189

@keilw keilw merged commit f469fd6 into JavaMoney:master Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants