db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1337019 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
Date Fri, 11 May 2012 03:24:54 GMT
Author: tfischer
Date: Fri May 11 03:24:53 2012
New Revision: 1337019

URL: http://svn.apache.org/viewvc?rev=1337019&view=rev
Log:
- Class is not serializable because instance field contains a non-serializable class
- added final modifiers to non-modifiable fields

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java?rev=1337019&r1=1337018&r2=1337019&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/map/ForeignKeyMap.java
Fri May 11 03:24:53 2012
@@ -19,7 +19,6 @@ package org.apache.torque.map;
  * under the License.
  */
 
-import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
@@ -29,13 +28,10 @@ import java.util.List;
  *
  * @version $Id$
  */
-public class ForeignKeyMap implements Serializable
+public class ForeignKeyMap
 {
-    /** The serialVersionUID for this class. */
-    private static final long serialVersionUID = -5971184507395399165L;
-
     /** The table to which the foreign key belongs, not null. */
-    private TableMap table;
+    private final TableMap table;
 
     /**
      * The table which is referenced by the foreign key, can be null if
@@ -50,7 +46,7 @@ public class ForeignKeyMap implements Se
     private String foreignTableName;
 
     /** The column pairs for the foreign key, not null, not empty, */
-    private List<ColumnPair> columns = new ArrayList<ColumnPair>();
+    private final List<ColumnPair> columns = new ArrayList<ColumnPair>();
 
     /**
      * Constructor.
@@ -178,12 +174,12 @@ public class ForeignKeyMap implements Se
         /**
          * The foreign key map this ColumnPair belongs to.
          */
-        private ForeignKeyMap foreignKeyMap;
+        private final ForeignKeyMap foreignKeyMap;
 
         /**
          * The foreign column of the pair, not null.
          */
-        private ColumnMap local;
+        private final ColumnMap local;
 
         /**
          * The foreign column of the pair, can be null if the



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message