jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1434387 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
Date Wed, 16 Jan 2013 20:56:51 GMT
Author: mduerig
Date: Wed Jan 16 20:56:50 2013
New Revision: 1434387

URL: http://svn.apache.org/viewvc?rev=1434387&view=rev
Log:
OAK-564: Remove duplicate code from NameMapperImpl

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java?rev=1434387&r1=1434386&r2=1434387&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/namepath/NamePathMapperImpl.java
Wed Jan 16 20:56:50 2013
@@ -59,11 +59,7 @@ public class NamePathMapperImpl implemen
     @Nonnull
     @Override
     public String getOakName(@Nonnull String jcrName) throws RepositoryException {
-        String oakName = getOakNameOrNull(jcrName);
-        if (oakName == null) {
-            throw new RepositoryException("Invalid jcr name " + jcrName);
-        }
-        return oakName;
+        return nameMapper.getOakName(jcrName);
     }
 
     @Override



Mime
View raw message