[ 
https://issues.apache.org/jira/browse/TAJO-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085072#comment-15085072
 ] 

ASF GitHub Bot commented on TAJO-1971:
--------------------------------------

Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/890#discussion_r48931767
  
    --- Diff: 
tajo-thirdparty/asm/src/main/java/org/apache/tajo/org/objectweb/asm/commons/AdviceAdapter.java
 ---
    @@ -419,9 +419,9 @@ public void visitMethodInsn(final int opcode, final 
String owner,
             mv.visitMethodInsn(opcode, owner, name, desc);
             if (constructor) {
                 Type[] types = Type.getArgumentTypes(desc);
    -            for (int i = 0; i < types.length; i++) {
    +            for (Type type1 : types) {
    --- End diff --
    
    This is valid but it looks not a good convention.


> 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)

Reply via email to