Don't unconditionally box list comprehension expressions.
GITHUB_BREAKING_CHANGES=none
@@ -519,8 +519,7 @@ final class ExpressionCompiler {
resultVar.gen(adapter);
visitedMap.gen(adapter);
- MethodRef.ARRAY_LIST_ADD.invokeUnchecked(
- adapter); // a_result.add(map.apply(a,i));
+ MethodRef.ARRAY_LIST_ADD.invokeUnchecked(adapter); // a_result.add(map.apply(a,i));
adapter.pop(); // pop boolean return value of List.add()
adapter.mark(loopContinue);
@@ -534,8 +533,7 @@ final class ExpressionCompiler {
// exit the loop
exitScope.gen(adapter);
}
- })
- .box();
+ });
}
@Override
