mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 10:48:09 +07:00
Java: Intention that wraps list/set/map with Collections.unmodifiableList/Set/Map (IDEA-93154)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// "Wrap with unmodifiable set" "true"
|
||||
import java.util.Collections;
|
||||
import java.util.Set;
|
||||
import java.util.HashSet;
|
||||
|
||||
class C {
|
||||
Set<String> test() {
|
||||
Set<String> result = new HashSet<>();
|
||||
return Collections.unmodifiableSet(result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user