commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1054728 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java
Date Mon, 03 Jan 2011 20:08:46 GMT
Author: sebb
Date: Mon Jan  3 20:08:46 2011
New Revision: 1054728

URL: http://svn.apache.org/viewvc?rev=1054728&view=rev
Log:
Javadoc fixes

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java?rev=1054728&r1=1054727&r2=1054728&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java Mon
Jan  3 20:08:46 2011
@@ -136,7 +136,8 @@ public final class Fraction extends Numb
      * @param numerator  the numerator, for example the three in 'three sevenths'
      * @param denominator  the denominator, for example the seven in 'three sevenths'
      * @return a new fraction instance
-     * @throws ArithmeticException if the denomiator is <code>zero</code>
+     * @throws ArithmeticException if the denominator is <code>zero</code>
+     * or the denominator is {@code negative} and the numerator is {@code Integer#MIN_VALUE}
      */
     public static Fraction getFraction(int numerator, int denominator) {
         if (denominator == 0) {
@@ -163,7 +164,7 @@ public final class Fraction extends Numb
      * @param numerator  the numerator, for example the three in 'one and three sevenths'
      * @param denominator  the denominator, for example the seven in 'one and three sevenths'
      * @return a new fraction instance
-     * @throws ArithmeticException if the denomiator is <code>zero</code>
+     * @throws ArithmeticException if the denominator is <code>zero</code>
      * @throws ArithmeticException if the denominator is negative
      * @throws ArithmeticException if the numerator is negative
      * @throws ArithmeticException if the resulting numerator exceeds 



Mime
View raw message