You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2009/01/19 22:25:46 UTC
svn commit: r735830 -
/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
Author: psteitz
Date: Mon Jan 19 13:25:45 2009
New Revision: 735830
URL: http://svn.apache.org/viewvc?rev=735830&view=rev
Log:
No code change. Fixed spelling errors in comments.
Modified:
commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java?rev=735830&r1=735829&r2=735830&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/util/MathUtils.java Mon Jan 19 13:25:45 2009
@@ -109,7 +109,7 @@
private static long addAndCheck(long a, long b, String msg) {
long ret;
if (a > b) {
- // use symmetry to reduce boundry cases
+ // use symmetry to reduce boundary cases
ret = addAndCheck(b, a, msg);
} else {
// assert a <= b
@@ -123,7 +123,7 @@
throw new ArithmeticException(msg);
}
} else {
- // oppisite sign addition is always safe
+ // opposite sign addition is always safe
ret = a + b;
}
} else {
@@ -630,7 +630,7 @@
long ret;
String msg = "overflow: multiply";
if (a > b) {
- // use symmetry to reduce boundry cases
+ // use symmetry to reduce boundary cases
ret = mulAndCheck(b, a);
} else {
if (a < 0) {