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