1 package org.checkstyle.suppressionxpathfilter.modifiedcontrolvariable; 2 3 public class InputXpathModifiedControlVariableSkipEnhancedForLoop { 4 public void test() { 5 String[] strings = {"first", "second"}; 6 for(String s : strings) { 7 s += "a"; // ok 8 } 9 for (int i = 0; i < 1; i++) { 10 i++; // warn 11 } 12 } 13 }