mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
469 B
Java
16 lines
469 B
Java
// "Copy 'i' to final temp variable" "true-preview"
|
|
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++)
|
|
new Thread(){
|
|
public void run(){
|
|
new String(strings[<caret>i]);
|
|
}
|
|
}.start();
|
|
}
|
|
}
|
|
}
|