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