HQLQueryPlan creates a new ArrayList to return every time, however if there is only one translator then it should be possible to just directly return the results list.
Note that this actually results in two additional array allocations, as the ArrayList.addAll() invocation calls .toArray() internally.
|