[java-inspections] OverwrittenKey: test for no-fallthrough

GitOrigin-RevId: 85eac005b977087112685b13878fa5f72c59ef4d
This commit is contained in:
Tagir Valeev
2021-04-07 05:44:03 +00:00
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);