Trailing spaces.
authorGilles Sadowski <gilles@harfang.homelinux.org>
Sat, 19 May 2018 14:57:12 +0000 (16:57 +0200)
committerGilles Sadowski <gilles@harfang.homelinux.org>
Sat, 19 May 2018 14:57:12 +0000 (16:57 +0200)
commons-numbers-fraction/src/main/java/org/apache/commons/numbers/fraction/Fraction.java

index 9ba0216..308f930 100644 (file)
@@ -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.