mirror of
https://github.com/apache/commons-math.git
synced 2025-02-08 11:05:56 +00:00
Java 1.5 does not allow @Override for method implementations, only true overrides
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1150378 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b29fc9645a
commit
3335529258
@ -146,7 +146,6 @@ public class Complex implements FieldElement<Complex>, Serializable {
|
||||
* @return {@code this + addend}.
|
||||
* @throws NullArgumentException if {@code factor} is {@code null}.
|
||||
*/
|
||||
@Override
|
||||
public Complex add(Complex addend) throws NullArgumentException {
|
||||
MathUtils.checkNotNull(addend);
|
||||
if (isNaN || addend.isNaN) {
|
||||
@ -237,7 +236,6 @@ public class Complex implements FieldElement<Complex>, Serializable {
|
||||
* @return {@code this / divisor}.
|
||||
* @throws NullArgumentException if {@code divisor} is {@code null}.
|
||||
*/
|
||||
@Override
|
||||
public Complex divide(Complex divisor)
|
||||
throws NullArgumentException {
|
||||
MathUtils.checkNotNull(divisor);
|
||||
@ -404,7 +402,6 @@ public class Complex implements FieldElement<Complex>, Serializable {
|
||||
* @return {@code this * factor}.
|
||||
* @throws NullArgumentException if {@code factor} is {@code null}.
|
||||
*/
|
||||
@Override
|
||||
public Complex multiply(Complex factor)
|
||||
throws NullArgumentException {
|
||||
MathUtils.checkNotNull(factor);
|
||||
@ -475,7 +472,6 @@ public class Complex implements FieldElement<Complex>, Serializable {
|
||||
* @return {@code this - subtrahend}.
|
||||
* @throws NullArgumentException if {@code factor} is {@code null}.
|
||||
*/
|
||||
@Override
|
||||
public Complex subtract(Complex subtrahend)
|
||||
throws NullArgumentException {
|
||||
MathUtils.checkNotNull(subtrahend);
|
||||
@ -1162,7 +1158,6 @@ public class Complex implements FieldElement<Complex>, Serializable {
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public ComplexField getField() {
|
||||
return ComplexField.getInstance();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user