public class Test { String[] f = new String[0]; void foo() { for (String i : f) {} } }