mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
14 lines
367 B
Java
14 lines
367 B
Java
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.Collection;
|
|
import java.util.List;
|
|
|
|
public class Test {
|
|
void test(Object c) {
|
|
//noinspection unchecked
|
|
/*inside*/
|
|
List<String> list = new ArrayList<>((/*cast!*/Collection<String>) c); // after
|
|
System.out.println(list);
|
|
}
|
|
}
|