mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-17 21:43:33 +07:00
EnsureCodeBlockImpl: support try splitting; used in AddAssertStatementFix
Fixes IDEA-230023 Applying `Assert != null` in try-with-resources leads to uncompilable code GitOrigin-RevId: 3dc141010420570c061849287adaeb0fccbcf1f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b6c8e10a79
commit
1bb6f68f9b
+6
-2
@@ -3,8 +3,12 @@ class A{
|
||||
void test(){
|
||||
Object container = null;
|
||||
Runnable r = () -> {
|
||||
assert container != null;
|
||||
container == null ? container.toString() : "";
|
||||
if (container == null) {
|
||||
assert container != null;
|
||||
container.toString();
|
||||
} else {
|
||||
"";
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user