View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.modifiedcontrolvariable;
2   
3   public class InputModifiedControlVariableEnhancedForLoopVariable2 {
4       void m(int[] a) {
5           for (int i = 0, j = 1; ; i++, j++) {
6               for (int k : a) {
7               }
8           }
9       }
10  
11      void m2(int[] a) {
12          for (int i = 0, j = 1; ; i++, j++) {
13              for (int k : a) {
14                  i++;
15              }
16          }
17      }
18  }