jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r154159 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java
Date Thu, 17 Feb 2005 15:07:27 GMT
Author: stefan
Date: Thu Feb 17 07:07:25 2005
New Revision: 154159

URL: http://svn.apache.org/viewcvs?view=rev&rev=154159
Log:
fixed JCR-48: XMLPersistenceManager trims string property values

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java?view=diff&r1=154158&r2=154159
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/state/xml/XMLPersistenceManager.java
Thu Feb 17 07:07:25 2005
@@ -289,14 +289,14 @@
             InternalValue val;
             if (!content.isEmpty()) {
                 // read serialized value
-                String text = valueElement.getTextTrim();
+                String text = valueElement.getText();
                 if (type == PropertyType.BINARY) {
                     // special handling required for binary value:
                     // the value stores the path to the actual binary file in the blob store
                     try {
                         val = InternalValue.create(new FileSystemResource(blobStore, text));
                     } catch (IOException ioe) {
-                        String msg = "error while reading serialized binary valuey";
+                        String msg = "error while reading serialized binary value";
                         log.debug(msg);
                         throw new ItemStateException(msg, ioe);
                     }
@@ -637,7 +637,7 @@
                                 values[i] = InternalValue.create(internalBlobFile);
                                 if (blobVal.isTempFile()) {
                                     blobVal.delete();
-                                    blobVal = null;
+                                    blobVal = null; // gc hint
                                 }
                             } else {
                                 // escape '<' and '&'



Mime
View raw message