commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1150378 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java
Date Sun, 24 Jul 2011 14:24:11 GMT
Author: sebb
Date: Sun Jul 24 14:24:11 2011
New Revision: 1150378

URL: http://svn.apache.org/viewvc?rev=1150378&view=rev
Log:
Java 1.5 does not allow @Override for method implementations, only true overrides

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java?rev=1150378&r1=1150377&r2=1150378&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/complex/Complex.java Sun
Jul 24 14:24:11 2011
@@ -146,7 +146,6 @@ public class Complex implements FieldEle
      * @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 FieldEle
      * @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 FieldEle
      * @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 FieldEle
      * @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 FieldEle
     }
 
     /** {@inheritDoc} */
-    @Override
     public ComplexField getField() {
         return ComplexField.getInstance();
     }



Mime
View raw message