mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
1. Quick-fix is much more accessible (e.g., can be activated via F2, Alt+Shift+Enter) 2. Simplify boolean expression intention is less smart, and it looks like discrepancies are possible Fixes IDEA-303115 Quick-fix to delete if-statement with always false condition GitOrigin-RevId: 26e78a7461a975532a45aded2125b319ce43b9d2
8 lines
206 B
Java
8 lines
206 B
Java
// "Remove 'if' statement" "true-preview"
|
|
class Test {
|
|
void patternVariableAccessedOutsideOfExpression(Object o) {
|
|
if (false && <caret>o instanceof String s) {
|
|
System.out.println(s);
|
|
}
|
|
}
|
|
} |