mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-26 08:21:26 +07:00
IDEA-196805 Warn about switch statement with single 'default'
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Unwrap 'switch' statement" "true"
|
||||
class X {
|
||||
String test(char c) {
|
||||
s<caret>witch (c) {
|
||||
default:
|
||||
if(c == 'a') {
|
||||
System.out.println("foo");
|
||||
break;
|
||||
} else break;
|
||||
}
|
||||
System.out.println("oops");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user