Tiny improvements regarding ArrayList creation
Closes gh-23047
This commit is contained in:
committed by
Sam Brannen
parent
f492e37370
commit
7ef8cc9faf
@@ -92,8 +92,8 @@ public class InlineList extends SpelNodeImpl {
|
||||
return this.constant;
|
||||
}
|
||||
else {
|
||||
List<Object> returnValue = new ArrayList<>();
|
||||
int childCount = getChildCount();
|
||||
List<Object> returnValue = new ArrayList<>(childCount);
|
||||
for (int c = 0; c < childCount; c++) {
|
||||
returnValue.add(getChild(c).getValue(expressionState));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user