Author: jleroux
Date: Fri Nov 13 14:01:47 2009
New Revision: 835851
URL:
http://svn.apache.org/viewvc?rev=835851&view=revLog:
No functional changes just a clean-up : no intermediate var is needed
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/container/ComponentContainer.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/container/ComponentContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/container/ComponentContainer.java?rev=835851&r1=835850&r2=835851&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/container/ComponentContainer.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/container/ComponentContainer.java Fri Nov 13 14:01:47 2009
@@ -240,8 +240,7 @@
if (path.exists()) {
if (path.isDirectory()) {
// load all .jar and .zip files in this directory
- File files[] = path.listFiles();
- for (File file: files) {
+ for (File file: path.listFiles()) {
String fileName = file.getName();
if (fileName.endsWith(".jar") || fileName.endsWith(".zip")) {
classPath.addComponent(file);