View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.finallocalvariable;
2   	
3   public class InputFinalLocalVariableEnhancedForLoopVariable {
4       public void method1()
5       {
6           final java.util.List<Object> list = new java.util.ArrayList<>();
7   
8           for(Object a : list){
9           }
10      }
11      
12      public void method2()
13      {
14          final int[] squares = {0, 1, 4, 9, 16, 25};
15          int x;
16          for (final int i : squares) {
17          }
18          
19      }
20      
21  }