jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r156187 - incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java
Date Fri, 04 Mar 2005 17:37:24 GMT
Author: tripod
Date: Fri Mar  4 09:37:21 2005
New Revision: 156187

URL: http://svn.apache.org/viewcvs?view=rev&rev=156187
Log:
- adjusted to java1.4 calls

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java?view=diff&r1=156186&r2=156187
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/ConfigurationParser.java
Fri Mar  4 09:37:21 2005
@@ -125,7 +125,7 @@
     /**
      * private constructor.
      *
-     * @param is
+     * @param xml
      * @param repHomeDir
      * @throws RepositoryException
      */
@@ -573,7 +573,7 @@
         // +--+-+--------+-+-----------------+
         int p = 0, q = value.indexOf("${");              // Find first ${
         while (q != -1) {
-            result.append(value, p, q);                  // Text before ${
+            result.append(value.substring(p, q));                  // Text before ${
             p = q;
             q = value.indexOf("}", q + 2);               // Find }
             if (q != -1) {
@@ -588,7 +588,7 @@
                 q = value.indexOf("${", p);              // Find next ${
             }
         }
-        result.append(value, p, value.length());         // Trailing text
+        result.append(value.substring(p, value.length()));         // Trailing text
 
         return result.toString();
     }



Mime
View raw message