commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r777526 - in /commons/proper/math/trunk/src/java/org/apache/commons/math: FieldElement.java complex/Complex.java fraction/BigFraction.java fraction/Fraction.java util/BigReal.java
Date Fri, 22 May 2009 13:55:22 GMT
Author: sebb
Date: Fri May 22 13:55:22 2009
New Revision: 777526

URL: http://svn.apache.org/viewvc?rev=777526&view=rev
Log:
Move Serializable from interface [New to 2.0] to implementations (some existing)

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/FieldElement.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFraction.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigReal.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/FieldElement.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/FieldElement.java?rev=777526&r1=777525&r2=777526&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/FieldElement.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/FieldElement.java Fri May 22
13:55:22 2009
@@ -16,7 +16,6 @@
  */
 package org.apache.commons.math;
 
-import java.io.Serializable;
 
 /**
  * Interface representing <a href="http://mathworld.wolfram.com/Field.html">field</a>
elements.
@@ -25,7 +24,7 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public interface FieldElement<T> extends Serializable {
+public interface FieldElement<T> {
 
     /** Compute this + a.
      * @param a element to add

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java?rev=777526&r1=777525&r2=777526&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/complex/Complex.java Fri May
22 13:55:22 2009
@@ -17,6 +17,7 @@
 
 package org.apache.commons.math.complex;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -38,9 +39,13 @@
  * or imaginary part - e.g., <pre>
  * <code>1 + NaNi  == NaN + i == NaN + NaNi.</code></pre></p>
  *
+ * implements Serializable since 2.0
+ * 
  * @version $Revision$ $Date$
  */
-public class Complex implements FieldElement<Complex>  {
+public class Complex implements FieldElement<Complex>, Serializable  {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier */
     private static final long serialVersionUID = -6195664516687396620L;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFraction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFraction.java?rev=777526&r1=777525&r2=777526&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFraction.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFraction.java Fri
May 22 13:55:22 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.math.fraction;
 
+import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigInteger;
 
@@ -30,7 +31,9 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public class BigFraction extends Number implements FieldElement<BigFraction>, Comparable<BigFraction>
{
+public class BigFraction extends Number implements FieldElement<BigFraction>, Comparable<BigFraction>,
Serializable {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** A fraction representing "2 / 1". */
     public static final BigFraction TWO = new BigFraction(2);

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java?rev=777526&r1=777525&r2=777526&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/Fraction.java Fri
May 22 13:55:22 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.math.fraction;
 
+import java.io.Serializable;
 import java.math.BigInteger;
 
 import org.apache.commons.math.FieldElement;
@@ -25,10 +26,14 @@
 /**
  * Representation of a rational number.
  *
+ * implements Serializable since 2.0
+ * 
  * @since 1.1
  * @version $Revision$ $Date$
  */
-public class Fraction extends Number implements FieldElement<Fraction>, Comparable<Fraction>
{
+public class Fraction extends Number implements FieldElement<Fraction>, Comparable<Fraction>,
Serializable {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** A fraction representing "2 / 1". */
     public static final Fraction TWO = new Fraction(2, 1);

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigReal.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigReal.java?rev=777526&r1=777525&r2=777526&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigReal.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigReal.java Fri May 22
13:55:22 2009
@@ -17,6 +17,7 @@
 package org.apache.commons.math.util;
 
 
+import java.io.Serializable;
 import java.math.BigDecimal;
 import java.math.BigInteger;
 import java.math.MathContext;
@@ -33,7 +34,9 @@
  * @since 2.0
  * @version $Revision$ $Date$
  */
-public class BigReal implements FieldElement<BigReal>, Comparable<BigReal> {
+public class BigReal implements FieldElement<BigReal>, Comparable<BigReal>, Serializable
{
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier. */
     private static final long serialVersionUID = 7887631840434052850L;



Mime
View raw message