From 3401226d407fe4ec3377d9d334c03b24be5ce20c Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Sun, 3 Aug 2003 22:43:03 +0000 Subject: [PATCH] Javadoc fixes bug 22094, from Tim O'Brien git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137560 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/lang/math/Fraction.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/commons/lang/math/Fraction.java b/src/java/org/apache/commons/lang/math/Fraction.java index bf5e369a7..cd227afd6 100644 --- a/src/java/org/apache/commons/lang/math/Fraction.java +++ b/src/java/org/apache/commons/lang/math/Fraction.java @@ -64,8 +64,9 @@ import java.io.Serializable; * * @author Travis Reeder * @author Stephen Colebourne + * @author Tim O'Brien * @since 2.0 - * @version $Id: Fraction.java,v 1.5 2003/07/26 00:57:02 ggregory Exp $ + * @version $Id: Fraction.java,v 1.6 2003/08/03 22:43:03 scolebourne Exp $ */ public final class Fraction extends Number implements Serializable, Comparable { @@ -331,7 +332,7 @@ public final class Fraction extends Number implements Serializable, Comparable { *

Gets the numerator part of the fraction.

* *

This method may return a value greater than the denominator, an - * improper fraction, such as the seven in 7/8.

+ * improper fraction, such as the seven in 7/4.

* * @return the numerator fraction part */ @@ -351,10 +352,10 @@ public final class Fraction extends Number implements Serializable, Comparable { /** *

Gets the proper numerator, always positive.

* - *

An improper fraction 7/8 can be resolved into a proper one, 1 3/4. + *

An improper fraction 7/4 can be resolved into a proper one, 1 3/4. * This method returns the 3 from the proper fraction.

* - *

If the fraction is negative such as -7/8, it can be resolved into + *

If the fraction is negative such as -7/4, it can be resolved into * -1 3/4, so this method returns the positive proper numerator, 3.

* * @return the numerator fraction part of a proper fraction, always positive @@ -366,10 +367,10 @@ public final class Fraction extends Number implements Serializable, Comparable { /** *

Gets the proper whole part of the fraction.

* - *

An improper fraction 7/8 can be resolved into a proper one, 1 3/4. + *

An improper fraction 7/4 can be resolved into a proper one, 1 3/4. * This method returns the 1 from the proper fraction.

* - *

If the fraction is negative such as -7/8, it can be resolved into + *

If the fraction is negative such as -7/4, it can be resolved into * -1 3/4, so this method returns the positive whole part -1.

* * @return the whole fraction part of a proper fraction, that includes the sign