We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5a8084 commit e1a0c2dCopy full SHA for e1a0c2d
java/ql/test/library-tests/typeflow/A.java
@@ -70,4 +70,19 @@ public void m7() {
70
int i2 = (Integer)x2;
71
int j2 = i2;
72
}
73
+
74
+ public static class C {
75
+ private Map<String, String> map;
76
+ public static C empty = new C(Collections.emptyMap());
77
+ private C(Map<String, String> map) {
78
+ this.map = map;
79
+ }
80
+ public C() {
81
+ this(new LinkedHashMap<>());
82
83
+ public void put(String k, String v) {
84
+ map.put(k, v);
85
+ empty.put(k, v);
86
87
88
0 commit comments