commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1293898 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java
Date Sun, 26 Feb 2012 17:58:07 GMT
Author: celestin
Date: Sun Feb 26 17:58:07 2012
New Revision: 1293898

URL: http://svn.apache.org/viewvc?rev=1293898&view=rev
Log:
Removed "throws ArithmeticException" from the signature of FieldElement<T>.divide(T),
as this contract was too restrictive, and indeed broken by nearly all implementations of FieldElement<T>.
See MATH-755.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java?rev=1293898&r1=1293897&r2=1293898&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/FieldElement.java Sun
Feb 26 17:58:07 2012
@@ -63,10 +63,8 @@ public interface FieldElement<T> {
     /** Compute this &divide; a.
      * @param a element to add
      * @return a new element representing this &divide; a
-     * @exception ArithmeticException if a is the zero of the
-     * additive operation (i.e. additive identity)
      */
-    T divide(T a) throws ArithmeticException;
+    T divide(T a);
 
     /**
      * Returns the multiplicative inverse of {@code this} element.



Mime
View raw message