Author: doogie
Date: Wed Oct 17 11:07:29 2007
New Revision: 585612
URL:
http://svn.apache.org/viewvc?rev=585612&view=revLog:
Use System.arraycopy to copy the loaderArgs array. Closes
https://issues.apache.org/jira/browse/OFBIZ-1309Modified:
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) {