paulk-asert commented on code in PR #2245:
URL: https://github.com/apache/groovy/pull/2245#discussion_r2120162906
##########
src/main/java/org/codehaus/groovy/transform/DelegateASTTransformation.java:
##########
@@ -165,7 +167,10 @@ public void visit(final ASTNode[] nodes, final SourceUnit
source) {
if (!checkPropertyOrMethodList(delegate.type, delegate.excludes,
"excludes", node, MY_TYPE_NAME)) return;
if (!checkPropertyOrMethodList(delegate.type, delegate.includes,
"includes", node, MY_TYPE_NAME)) return;
- final Iterable<MethodNode> ownerMethods =
getAllMethods(delegate.owner);
+ final List<MethodNode> ownerMethods = new
ArrayList<>(getAllMethods(delegate.owner));
Review Comment:
getAllMethods creates a new list, so you shouldn't need the outer ArrayList
(here and below).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]