mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-182501 Unwrap 'if' generates unreachable code
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
void f(){
|
||||
while (true) {
|
||||
continue;//comment
|
||||
}
|
||||
}}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Unwrap 'if' statement" "true"
|
||||
class X {
|
||||
void f(){
|
||||
while (true) {
|
||||
if (tr<caret>ue) {
|
||||
continue;//comment
|
||||
}
|
||||
System.out.println();
|
||||
}
|
||||
}}
|
||||
Reference in New Issue
Block a user