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