Skip to content

Commit

Permalink
Removed "throws ArithmeticException" from the signature of FieldEleme…
Browse files Browse the repository at this point in the history
…nt<T>.divide(T), as this contract was too restrictive, and indeed broken by nearly all implementations of FieldElement<T>. See MATH-755.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1293898 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Sebastien Brisard committed Feb 26, 2012
1 parent f63bfec commit 4705c4f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/apache/commons/math3/FieldElement.java
Expand Up @@ -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.
Expand Down

0 comments on commit 4705c4f

Please sign in to comment.