jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r1468343 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java
Date Tue, 16 Apr 2013 09:45:25 GMT
Author: mreutegg
Date: Tue Apr 16 09:45:24 2013
New Revision: 1468343

URL: http://svn.apache.org/r1468343
Log:
OAK-777: Get value as Type.NAME in NodeStateUtils.getPrimaryTypeName()

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java?rev=1468343&r1=1468342&r2=1468343&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/spi/state/NodeStateUtils.java
Tue Apr 16 09:45:24 2013
@@ -44,6 +44,6 @@ public final class NodeStateUtils {
     @CheckForNull
     public static String getPrimaryTypeName(NodeState nodeState) {
         PropertyState ps = nodeState.getProperty(JcrConstants.JCR_PRIMARYTYPE);
-        return (ps == null) ? null : ps.getValue(Type.STRING);
+        return (ps == null) ? null : ps.getValue(Type.NAME);
     }
 }



Mime
View raw message