Trailing spaces.
Project: http://git-wip-us.apache.org/repos/asf/commons-numbers/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-numbers/commit/27115fd0 Tree: http://git-wip-us.apache.org/repos/asf/commons-numbers/tree/27115fd0 Diff: http://git-wip-us.apache.org/repos/asf/commons-numbers/diff/27115fd0 Branch: refs/heads/master Commit: 27115fd062937cfa166e5d58fb0a21198ef38f0b Parents: 0dc4b0b Author: Gilles Sadowski <gil...@harfang.homelinux.org> Authored: Sat May 19 16:57:12 2018 +0200 Committer: Gilles Sadowski <gil...@harfang.homelinux.org> Committed: Sat May 19 16:57:12 2018 +0200 ---------------------------------------------------------------------- .../org/apache/commons/numbers/fraction/Fraction.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-numbers/blob/27115fd0/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java ---------------------------------------------------------------------- diff --git a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java index 9ba0216..308f930 100644 --- a/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java +++ b/commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java @@ -398,6 +398,18 @@ public class Fraction return (long)doubleValue(); } + /** {@inheritDoc} */ + @Override + public Fraction zero() { + return ZERO; + } + + /** {@inheritDoc} */ + @Override + public Fraction one() { + return ONE; + } + /** * Return the additive inverse of this fraction. * @return the negation of this fraction.