jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r512250 - /jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
Date Tue, 27 Feb 2007 13:31:51 GMT
Author: mreutegg
Date: Tue Feb 27 05:31:45 2007
New Revision: 512250

URL: http://svn.apache.org/viewvc?view=rev&rev=512250
Log:
JCR-770: Path should implement Serializable

Modified:
    jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java

Modified: jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java?view=diff&rev=512250&r1=512249&r2=512250
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/name/Path.java
Tue Feb 27 05:31:45 2007
@@ -20,6 +20,7 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.LinkedList;
+import java.io.Serializable;
 
 /**
  * The <code>Path</code> utility class provides misc. methods to resolve and
@@ -79,7 +80,9 @@
  *                  character *)
  * </pre>
  */
-public final class Path {
+public final class Path implements Serializable {
+
+    static final long serialVersionUID = 7272485577196962560L;
 
     /**
      * the 'root' element. i.e. '/'
@@ -134,12 +137,12 @@
     /**
      * the cached hashcode of this path
      */
-    private int hash = 0;
+    private transient int hash = 0;
 
     /**
      * the cached 'toString' of this path
      */
-    private String string;
+    private transient String string;
 
     /**
      * Private constructor
@@ -955,7 +958,7 @@
      * <p/>
      * Once created, a PathElement object is immutable.
      */
-    public abstract static class PathElement {
+    public abstract static class PathElement implements Serializable {
 
         /**
          * Qualified name of the path element.



Mime
View raw message