mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 21:00:59 +07:00
36 lines
898 B
Java
36 lines
898 B
Java
// "Fix all 'Redundant usage of unmodifiable collection factories' problems in file" "true"
|
|
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
|
|
class Main {
|
|
|
|
public static void main(String[] args) {
|
|
Collections.unmodifiableCollecti<caret>on(getEmptyList());
|
|
|
|
Collections.unmodifiableList(getEmptyList());
|
|
Collections.unmodifiableSet(getEmptySet());
|
|
Collections.unmodifiableMap(getEmptyMap());
|
|
|
|
Collections.unmodifiableSortedSet(getEmptySet());
|
|
Collections.unmodifiableSortedMap(getEmptyMap());
|
|
|
|
Collections.unmodifiableNavigableSet(getEmptySet());
|
|
Collections.unmodifiableNavigableMap(getEmptyMap());
|
|
}
|
|
|
|
static List getEmptyList() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
static Set getEmptySet() {
|
|
return Collections.emptySet();
|
|
}
|
|
|
|
static Map getEmptyMap() {
|
|
return Collections.emptyMap();
|
|
}
|
|
}
|