Author: adrianc
Date: Sun Apr 29 08:18:55 2012
New Revision: 1331876
URL:
http://svn.apache.org/viewvc?rev=1331876&view=revLog:
Small fixup for my previous commit.
Modified:
ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java?rev=1331876&r1=1331875&r2=1331876&view=diff==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/SimpleMethod.java Sun Apr 29 08:18:55 2012
@@ -398,7 +398,7 @@ public class SimpleMethod {
public static List<MethodOperation> readOperations(Element simpleMethodElement, SimpleMethod simpleMethod) throws MiniLangException {
List<? extends Element> operationElements = UtilXml.childElementList(simpleMethodElement);
- List<MethodOperation> methodOperations = new ArrayList<MethodOperation>(operationElements.size());
+ ArrayList<MethodOperation> methodOperations = new ArrayList<MethodOperation>(operationElements.size());
if (UtilValidate.isNotEmpty(operationElements)) {
for (Element curOperElem : operationElements) {
String nodeName = curOperElem.getNodeName();
@@ -421,6 +421,7 @@ public class SimpleMethod {
}
}
}
+ methodOperations.trimToSize();
return methodOperations;
}