directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r280693 - in /directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives: BitString.java OID.java OctetString.java
Date Tue, 13 Sep 2005 22:21:03 GMT
Author: elecharny
Date: Tue Sep 13 15:20:56 2005
New Revision: 280693

URL: http://svn.apache.org/viewcvs?rev=280693&view=rev
Log:
Those three classes now implements Serializable, otherwise the messages that use them can't
be serialized 
before being store in the database.

Modified:
    directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/BitString.java
    directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OID.java
    directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OctetString.java

Modified: directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/BitString.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/BitString.java?rev=280693&r1=280692&r2=280693&view=diff
==============================================================================
--- directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/BitString.java
(original)
+++ directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/BitString.java
Tue Sep 13 15:20:56 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1new.primitives;
 
+import java.io.Serializable;
+
 import org.apache.asn1.codec.DecoderException;
 
 
@@ -26,8 +28,10 @@
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class BitString
+public class BitString implements Serializable
 {
+    private static final long serialVersionUID = 1L;
+
     //~ Static fields/initializers -----------------------------------------------------------------
 
     /** A null MutableString */

Modified: directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OID.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OID.java?rev=280693&r1=280692&r2=280693&view=diff
==============================================================================
--- directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OID.java (original)
+++ directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OID.java Tue
Sep 13 15:20:56 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1new.primitives;
 
+import java.io.Serializable;
+
 import org.apache.asn1.codec.DecoderException;
 
 
@@ -48,8 +50,10 @@
  * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class OID
+public class OID implements Serializable
 {
+    private static final long serialVersionUID = 1L;
+    
     //~ Instance fields ----------------------------------------------------------------------------
 
     /** The OID as a array of int */

Modified: directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OctetString.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OctetString.java?rev=280693&r1=280692&r2=280693&view=diff
==============================================================================
--- directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OctetString.java
(original)
+++ directory/asn1/trunk/ber-new/src/java/main/org/apache/asn1new/primitives/OctetString.java
Tue Sep 13 15:20:56 2005
@@ -16,6 +16,8 @@
  */
 package org.apache.asn1new.primitives;
 
+import java.io.Serializable;
+
 import org.apache.asn1new.util.StringUtils;
 
 
@@ -24,8 +26,10 @@
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class OctetString
+public class OctetString implements Serializable
 {
+    private static final long serialVersionUID = 1L;
+    
     //~ Static fields/initializers -----------------------------------------------------------------
 
     /** A null OctetString */



Mime
View raw message