commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1059747 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/Fraction.java
Date Mon, 17 Jan 2011 04:12:36 GMT
Author: bayard
Date: Mon Jan 17 04:12:36 2011
New Revision: 1059747

URL: http://svn.apache.org/viewvc?rev=1059747&view=rev
Log:
Adding note that this has overflow issues and pointing to BigFraction

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=1059747&r1=1059746&r2=1059747&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 17 04:12:36 2011
@@ -25,6 +25,10 @@ import java.math.BigInteger;
  * <p>This class is immutable, and interoperable with most methods that accept
  * a <code>Number</code>.</p>
  *
+ * <p>Note that this class is intended for common use cases, it is <i>int</i>
+ * based and thus suffers from various overflow issues. For a BigInteger based 
+ * equivalent, please see the Commons Math BigFraction class. </p>
+ *
  * @author Apache Software Foundation
  * @author Travis Reeder
  * @author Tim O'Brien



Mime
View raw message