jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r507517 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java
Date Wed, 14 Feb 2007 12:56:57 GMT
Author: reschke
Date: Wed Feb 14 04:56:56 2007
New Revision: 507517

URL: http://svn.apache.org/viewvc?view=rev&rev=507517
Log:
Use getString() rather than toString() to obtain string value from QValue.

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java?view=diff&rev=507517&r1=507516&r2=507517
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/version/VersionManagerImpl.java
Wed Feb 14 04:56:56 2007
@@ -179,7 +179,7 @@
     public NodeEntry getVersionHistoryNodeState(NodeState versionableState) throws RepositoryException
{
         try {
             PropertyState ps = versionableState.getPropertyState(QName.JCR_VERSIONHISTORY);
-            String uniqueID = ps.getValue().toString();
+            String uniqueID = ps.getValue().getString();
             NodeId vhId = workspaceManager.getIdFactory().createNodeId(uniqueID);
             return (NodeEntry) workspaceManager.getHierarchyManager().getHierarchyEntry(vhId);
         } catch (ItemStateException e) {



Mime
View raw message