commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r777521 - in /commons/proper/math/trunk/src/java/org/apache/commons/math: Field.java complex/ComplexField.java fraction/BigFractionField.java fraction/FractionField.java util/BigRealField.java
Date Fri, 22 May 2009 13:48:21 GMT
Author: sebb
Date: Fri May 22 13:48:21 2009
New Revision: 777521

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

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/Field.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexField.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionField.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionField.java
    commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigRealField.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/Field.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/Field.java?rev=777521&r1=777520&r2=777521&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/Field.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/Field.java Fri May 22 13:48:21
2009
@@ -16,8 +16,6 @@
  */
 package org.apache.commons.math;
 
-import java.io.Serializable;
-
 /**
  * Interface representing a <a href="http://mathworld.wolfram.com/Field.html">field</a>.
  * <p>
@@ -28,7 +26,7 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public interface Field<T> extends Serializable {
+public interface Field<T> {
 
     /** Get the additive identity of the field.
      * <p>

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexField.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexField.java?rev=777521&r1=777520&r2=777521&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexField.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/complex/ComplexField.java Fri
May 22 13:48:21 2009
@@ -17,6 +17,8 @@
 
 package org.apache.commons.math.complex;
 
+import java.io.Serializable;
+
 import org.apache.commons.math.Field;
 
 /**
@@ -28,7 +30,9 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public class ComplexField implements Field<Complex>  {
+public class ComplexField implements Field<Complex>, Serializable  {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier. */
     private static final long serialVersionUID = -6130362688700788798L;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionField.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionField.java?rev=777521&r1=777520&r2=777521&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionField.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/BigFractionField.java
Fri May 22 13:48:21 2009
@@ -17,6 +17,8 @@
 
 package org.apache.commons.math.fraction;
 
+import java.io.Serializable;
+
 import org.apache.commons.math.Field;
 
 /**
@@ -28,7 +30,9 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public class BigFractionField implements Field<BigFraction>  {
+public class BigFractionField implements Field<BigFraction>, Serializable  {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier */
     private static final long serialVersionUID = -1699294557189741703L;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionField.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionField.java?rev=777521&r1=777520&r2=777521&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionField.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionField.java
Fri May 22 13:48:21 2009
@@ -17,6 +17,8 @@
 
 package org.apache.commons.math.fraction;
 
+import java.io.Serializable;
+
 import org.apache.commons.math.Field;
 
 /**
@@ -28,7 +30,9 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public class FractionField implements Field<Fraction>  {
+public class FractionField implements Field<Fraction>, Serializable  {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier */
     private static final long serialVersionUID = -1257768487499119313L;

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigRealField.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigRealField.java?rev=777521&r1=777520&r2=777521&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigRealField.java (original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/util/BigRealField.java Fri
May 22 13:48:21 2009
@@ -17,6 +17,8 @@
 
 package org.apache.commons.math.util;
 
+import java.io.Serializable;
+
 import org.apache.commons.math.Field;
 
 /**
@@ -28,7 +30,9 @@
  * @version $Revision$ $Date$
  * @since 2.0
  */
-public class BigRealField implements Field<BigReal>  {
+public class BigRealField implements Field<BigReal>, Serializable  {
+    // TODO: Add Serializable documentation
+    // TODO: Check Serializable implementation
 
     /** Serializable version identifier */
     private static final long serialVersionUID = 4756431066541037559L;



Mime
View raw message