directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359516 - in /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name: AttributeTypeAndValue.java Rdn.java
Date Wed, 28 Dec 2005 13:42:32 GMT
Author: elecharny
Date: Wed Dec 28 05:42:28 2005
New Revision: 359516

URL: http://svn.apache.org/viewcvs?rev=359516&view=rev
Log:
Fixed the serialization. 

Modified:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/AttributeTypeAndValue.java
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/Rdn.java

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/AttributeTypeAndValue.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/AttributeTypeAndValue.java?rev=359516&r1=359515&r2=359516&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/AttributeTypeAndValue.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/AttributeTypeAndValue.java
Wed Dec 28 05:42:28 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.ldap.common.name;
 
+import java.io.Serializable;
+
 import javax.naming.InvalidNameException;
 
 import org.apache.ldap.common.util.StringTools;
@@ -37,8 +39,15 @@
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class AttributeTypeAndValue implements Cloneable, Comparable
+public class AttributeTypeAndValue implements Cloneable, Comparable, Serializable
 {
+    /**
+     * Declares the Serial Version Uid.
+     * 
+     * @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare
Serial Version Uid</a>
+     */
+    private static final long serialVersionUID = 1L;
+
     /** The LoggerFactory used by this class */
     private static Logger log = LoggerFactory.getLogger( AttributeTypeAndValue.class );
 

Modified: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/Rdn.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/Rdn.java?rev=359516&r1=359515&r2=359516&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/Rdn.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/Rdn.java
Wed Dec 28 05:42:28 2005
@@ -16,6 +16,7 @@
  */
 package org.apache.ldap.common.name;
 
+import java.io.Serializable;
 import java.io.UnsupportedEncodingException;
 import java.util.Iterator;
 import java.util.List;
@@ -97,9 +98,16 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  *
  */
-public class Rdn implements Cloneable, Comparable
+public class Rdn implements Cloneable, Comparable, Serializable
 {
-	/** The User Provided RDN */
+    /**
+     * Declares the Serial Version Uid.
+     * 
+     * @see <a href="http://c2.com/cgi/wiki?AlwaysDeclareSerialVersionUid">Always Declare
Serial Version Uid</a>
+     */
+    private static final long serialVersionUID = 1L;
+
+    /** The User Provided RDN */
 	private String upName = null;
 	
 	/** The normalized RDN */
@@ -129,7 +137,7 @@
     
     /** The number of atavs. We store this number here to avoid complex
      * manipulation of atav and atavs */
-    private transient int nbAtavs = 0;
+    private int nbAtavs = 0;
     
     /** CompareTo() results */
     public static final int UNDEFINED = Integer.MAX_VALUE;



Mime
View raw message