google-nomulus/java
Chris Tingue b2d5108c0c Prefer Money.zero over Money.of(currency, 0)
In the case where currency has a zero scale (i.e. JPY),
Money.of(currency, 0) throws ArithmeticException because the second
argument is handled as a double, and JPY (for example) does not allow
decimal precision, even if the decimal is zero.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129023540
2016-08-02 19:17:29 -04:00
..
com/google Fix up license headers and Python linting 2016-08-02 19:16:42 -04:00
google/registry Prefer Money.zero over Money.of(currency, 0) 2016-08-02 19:17:29 -04:00