View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.modifiedcontrolvariable;
2   
3   public class InputModifiedControlVariableEnhancedForLoopVariable {
4   
5       public void method2()
6       {
7           final String[] lines = {"line1", "line2", "line3"};
8           for (String line: lines) {
9               line = line.trim();
10          }
11      }
12  }