svn commit: r585612 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

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

svn commit: r585612 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

doogie-3
Author: doogie
Date: Wed Oct 17 11:07:29 2007
New Revision: 585612

URL: http://svn.apache.org/viewvc?rev=585612&view=rev
Log:
Use System.arraycopy to copy the loaderArgs array.  Closes
https://issues.apache.org/jira/browse/OFBIZ-1309

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

Modified: ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java?rev=585612&r1=585611&r2=585612&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java (original)
+++ ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java Wed Oct 17 11:07:29 2007
@@ -70,9 +70,7 @@
         // parse the startup arguments
         if (args.length > 1) {
             this.loaderArgs = new String[args.length - 1];
-            for (int i = 1; i < args.length; i++) {
-                this.loaderArgs[i - 1] = args[i];
-            }
+            System.arraycopy(args, 1, this.loaderArgs, 0, this.loaderArgs.length);
         }
 
         if (fullInit) {