svn commit: r585602 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r585602 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java

doogie-3
Author: doogie
Date: Wed Oct 17 10:49:08 2007
New Revision: 585602

URL: http://svn.apache.org/viewvc?rev=585602&view=rev
Log:
Switch toString to StringBuilder, from StringBuffer.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1311

Modified:
    ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java

Modified: ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java?rev=585602&r1=585601&r2=585602&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java (original)
+++ ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Classpath.java Wed Oct 17 10:49:08 2007
@@ -77,7 +77,7 @@
     }
 
     
-    private void appendPath(StringBuffer cp, String path) {
+    private void appendPath(StringBuilder cp, String path) {
         if(path.indexOf(' ') >= 0) {
             cp.append('\"');
             cp.append(path);
@@ -90,7 +90,7 @@
     
     
     public String toString() {
-        StringBuffer cp = new StringBuffer(1024);
+        StringBuilder cp = new StringBuilder(1024);
         int cnt = _elements.size();
         if (cnt >= 1) {
             cp.append(((File) (_elements.get(0))).getPath());