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