incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r654215 - /incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java
Date Wed, 07 May 2008 18:58:42 GMT
Author: fmeschbe
Date: Wed May  7 11:58:41 2008
New Revision: 654215

URL: http://svn.apache.org/viewvc?rev=654215&view=rev
Log:
The ResourceResolver will always return search path entries with
trailings slashes, no need to verify.

Modified:
    incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java

Modified: incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java?rev=654215&r1=654214&r2=654215&view=diff
==============================================================================
--- incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java
(original)
+++ incubator/sling/trunk/sling/i18n/src/main/java/org/apache/sling/i18n/impl/JcrResourceBundle.java
Wed May  7 11:58:41 2008
@@ -203,16 +203,7 @@
 
     private String[] getSearchPath() {
         if (searchPath == null) {
-            String[] path = resourceResolver.getSearchPath();
-
-            // ensure trailing slash
-            for (int i = 0; i < path.length; i++) {
-                if (!path[i].endsWith("/")) {
-                    path[i] = path[i].concat("/");
-                }
-            }
-
-            searchPath = path;
+            searchPath = resourceResolver.getSearchPath();
         }
 
         return searchPath;



Mime
View raw message