jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: rev 55714 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/obj
Date Wed, 27 Oct 2004 16:33:22 GMT
Author: stefan
Date: Wed Oct 27 09:33:22 2004
New Revision: 55714

Modified:
   incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/obj/ObjectPersistenceManager.java
Log:
cosmetics

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/obj/ObjectPersistenceManager.java
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/obj/ObjectPersistenceManager.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/obj/ObjectPersistenceManager.java
Wed Oct 27 09:33:22 2004
@@ -46,9 +46,6 @@
      */
     private static final char[] HEXDIGITS = "0123456789abcdef".toCharArray();
 
-    /**
-     * The default encoding used in serialization
-     */
     private static final String NODEFILENAME = ".node";
 
     private static final String NODEREFSFILENAME = ".references";
@@ -77,7 +74,7 @@
             }
             //if (cnt > 0 && cnt % 4 == 0) {
             if (cnt == 2 || cnt == 4) {
-                sb.append('/');
+                sb.append(FileSystem.SEPARATOR_CHAR);
             }
             sb.append(chars[i]);
             cnt++;
@@ -104,20 +101,20 @@
             log.fatal(msg, nsae);
             throw new InternalError(msg + nsae);
         }
-        return buildNodeFolderPath(parentUUID) + "/" + fileName;
+        return buildNodeFolderPath(parentUUID) + FileSystem.SEPARATOR + fileName;
     }
 
     private static String buildBlobFilePath(String parentUUID, QName propName, int i) {
-        return buildNodeFolderPath(parentUUID) + "/"
+        return buildNodeFolderPath(parentUUID) + FileSystem.SEPARATOR
                 + FileSystemPathUtil.escapeName(propName.toString()) + "." + i + ".bin";
     }
 
     private static String buildNodeFilePath(String uuid) {
-        return buildNodeFolderPath(uuid) + "/" + NODEFILENAME;
+        return buildNodeFolderPath(uuid) + FileSystem.SEPARATOR + NODEFILENAME;
     }
 
     private static String buildNodeReferencesFilePath(String uuid) {
-        return buildNodeFolderPath(uuid) + "/" + NODEREFSFILENAME;
+        return buildNodeFolderPath(uuid) + FileSystem.SEPARATOR + NODEREFSFILENAME;
     }
 
     //------------------------------------------------< static helper methods >

Mime
View raw message