jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1376040 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
Date Wed, 22 Aug 2012 13:35:33 GMT
Author: mduerig
Date: Wed Aug 22 13:35:32 2012
New Revision: 1376040

URL: http://svn.apache.org/viewvc?rev=1376040&view=rev
Log:
Use PathUtils.concat instead of string concatenation

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java?rev=1376040&r1=1376039&r2=1376040&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyDelegate.java
Wed Aug 22 13:35:32 2012
@@ -69,12 +69,7 @@ public class PropertyDelegate extends It
 
     @Override
     public String getPath() throws InvalidItemStateException {
-        String path = getParent().getPath();
-        if (path.equals("/")) {
-            return path + getName();
-        } else {
-            return path + '/' + getName();
-        }
+        return PathUtils.concat(getParent().getPath(), getName());
     }
 
     @Override



Mime
View raw message