Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/mustBeFinal/afterLoop.java

18 lines
513 B
Java

// "Copy 'i' to final temp variable" "true"
class ParamTypeBug {
private static String strings[] = new String[]{ "a", "b", "c" };
public static void main(final String ... args){
if (args.length == 1){
for(int i = 0; i < strings.length; i++) {
final int finalI = i;
new Thread(){
public void run(){
new String(strings[finalI]);
}
}.start();
}
}
}
}