mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-inspections] OverwrittenKey: test for no-fallthrough
GitOrigin-RevId: 85eac005b977087112685b13878fa5f72c59ef4d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
59a29dc891
commit
97f9e8ee5e
@@ -77,6 +77,20 @@ class OverwrittenKey {
|
||||
}
|
||||
}
|
||||
|
||||
void testNoFallthrough(Map<String, String> map, int id) {
|
||||
switch(id) {
|
||||
case 1:
|
||||
map.put("foo", "bar");
|
||||
break;
|
||||
case 2:
|
||||
map.put("foo", "baz");
|
||||
break;
|
||||
default:
|
||||
map.put("foo", "qux");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void differentQualifiers(Set<Integer> set) {
|
||||
set.add(h1.KEY);
|
||||
set.add(h2.KEY);
|
||||
|
||||
Reference in New Issue
Block a user