incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r722458 - /incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
Date Tue, 02 Dec 2008 13:56:25 GMT
Author: fmeschbe
Date: Tue Dec  2 05:56:25 2008
New Revision: 722458

URL: http://svn.apache.org/viewvc?rev=722458&view=rev
Log:
SLING-750 Missing fix for regular expression replacement

Modified:
    incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java

Modified: incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java?rev=722458&r1=722457&r2=722458&view=diff
==============================================================================
--- incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
(original)
+++ incubator/sling/trunk/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/MapEntry.java
Tue Dec  2 05:56:25 2008
@@ -80,11 +80,8 @@
         if (m.find()) {
             String[] redirects = getRedirect();
             String[] results = new String[redirects.length];
-            StringBuffer buf = new StringBuffer();
             for (int i=0; i < redirects.length; i++) {
-                m.appendReplacement(buf, redirects[i]);
-                m.appendTail(buf);
-                results[i] = buf.toString();
+                results[i] = m.replaceFirst(redirects[i]);
             }
             return results;
         }



Mime
View raw message