mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
delete assert statements when simplify (IDEA-84527)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Fix all 'Constant conditions & exceptions' problems" "true"
|
||||
public class Test {
|
||||
void foo2() {
|
||||
int k = 0;
|
||||
int i = 0;
|
||||
assert false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Fix all 'Constant conditions & exceptions' problems" "true"
|
||||
public class Test {
|
||||
void foo2() {
|
||||
int k = 0;
|
||||
int i = 0;
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Fix all 'Constant conditions & exceptions' problems" "true"
|
||||
public class Test {
|
||||
void foo2() {
|
||||
int k = 0;
|
||||
int i = 0;
|
||||
assert <caret>i != k;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Fix all 'Constant conditions & exceptions' problems" "true"
|
||||
public class Test {
|
||||
void foo2() {
|
||||
int k = 0;
|
||||
int i = 0;
|
||||
assert <caret>i == k;
|
||||
assert i == k;
|
||||
if (i == k) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user