Java: Intention that wraps list/set/map with Collections.unmodifiable - don't suggest on the left-hand side of assignment (IDEA-208885)

This commit is contained in:
Pavel Dolgov
2019-03-15 13:16:09 +03:00
parent c8ff86b5ab
commit 79022c29ce
2 changed files with 11 additions and 1 deletions
@@ -0,0 +1,10 @@
// "Wrap with unmodifiable map" "false"
import java.util.Map;
import java.util.HashMap;
class C {
Map<String, String> map;
{
this.<caret>map = new HashMap<>();
}
}