@@ -92,10 +92,6 @@ public void test() {
92
92
Set<String> stringSet = Collections.singleton("aaa");
93
93
List<String> stringList = Collections.singletonList("bbb");
94
94
Map<String, Object> stringMap = Collections.singletonMap("a-key", "a-value");
95
- Object value = stringMap.get("a-key");
96
- if (value instanceof String) {
97
- System.out.println(((String) value).length());
98
- }
99
95
}
100
96
}
101
97
""" ,
@@ -115,10 +111,6 @@ public void test() {
115
111
Set<String> stringSet = Set.of("aaa");
116
112
List<String> stringList = List.of("bbb");
117
113
Map<String, Object> stringMap = Map.of("a-key", "a-value");
118
- Object value = stringMap.get("a-key");
119
- if (value instanceof String s) {
120
- System.out.println(s.length());
121
- }
122
114
}
123
115
}
124
116
"""
@@ -185,10 +177,6 @@ public void test() {
185
177
Set<String> stringSet = Collections.singleton("aaa");
186
178
List<String> stringList = Collections.singletonList("bbb");
187
179
Map<String, Object> stringMap = Collections.singletonMap("a-key", "a-value");
188
- Object value = stringMap.get("a-key");
189
- if (value instanceof String) {
190
- System.out.println(((String) value).length());
191
- }
192
180
}
193
181
}
194
182
""" ,
@@ -208,10 +196,6 @@ public void test() {
208
196
Set<String> stringSet = Set.of("aaa");
209
197
List<String> stringList = List.of("bbb");
210
198
Map<String, Object> stringMap = Map.of("a-key", "a-value");
211
- Object value = stringMap.get("a-key");
212
- if (value instanceof String s) {
213
- System.out.println(s.length());
214
- }
215
199
}
216
200
}
217
201
"""
0 commit comments