mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
IDEA-178761 Inspection 'Collection.addAll() can be replaced with parametrized constructor' should be turned on by default Fixes comments handling, possible semantics change; now suggested in more cases
12 lines
318 B
Java
12 lines
318 B
Java
// "Replace 'addAll()' call with parametrized constructor call" "true"
|
|
import java.lang.String;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import java.util.HashSet;
|
|
import java.util.Collection;
|
|
|
|
class C {
|
|
void m() {
|
|
final Collection<String> strings = new ArrayList<String>(new HashSet<String>());
|
|
}
|
|
} |