[
https://issues.apache.org/jira/browse/TAJO-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15057209#comment-15057209
]
ASF GitHub Bot commented on TAJO-1971:
--------------------------------------
Github user dkhwangbo commented on a diff in the pull request:
https://github.com/apache/tajo/pull/890#discussion_r47590036
--- Diff:
tajo-core/src/main/java/org/apache/tajo/engine/query/TaskRequestImpl.java ---
@@ -258,9 +258,9 @@ private void mergeLocalToBuilder() {
builder.setInterQuery(this.interQuery);
}
if (this.fetches != null) {
- for (int i = 0; i < fetches.size(); i++) {
- builder.addFetches(fetches.get(i).getProto());
- }
+ for (FetchImpl fetche : fetches) {
--- End diff --
Oh, I really sorry about it. I missed. Change it right now.
> Replace 'for' loop with 'foreach'
> ---------------------------------
>
> Key: TAJO-1971
> URL: https://issues.apache.org/jira/browse/TAJO-1971
> Project: Tajo
> Issue Type: Improvement
> Reporter: Dongkyu Hwangbo
> Assignee: Dongkyu Hwangbo
> Priority: Trivial
> Labels: newbie
>
> Reports for loops which iterate over collections or arrays, and can be
> replaced with the foreach iteration syntax, available in Java 5 and newer, to
> get the improvement of readability and so on.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)