Github user eminency commented on a diff in the pull request:
https://github.com/apache/tajo/pull/944#discussion_r56451584
--- Diff:
tajo-core/src/main/java/org/apache/tajo/engine/query/TaskRequestImpl.java ---
@@ -216,49 +217,42 @@ public Enforcer getEnforcer() {
return this.fetches;
}
- private void initFetches() {
- if (this.fetches != null) {
+ private void initFetches() {
+ if (this.fetches != null) {
return;
}
TaskRequestProtoOrBuilder p = viaProto ? proto : builder;
- this.fetches = new ArrayList<>();
- for(FetchProto fetch : p.getFetchesList()) {
- fetches.add(fetch);
- }
- }
+ this.fetches =
p.getFetchesList().stream().collect(Collectors.toList());
--- End diff --
Same as above early.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---