mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ExpressionUtils#getTopLevelExpression; used in SurroundWithTryCatchFix
Fixes EA-131551 - NPE: EnsureCodeBlockImpl.splitIf We need to avoid custom logic for processing && chains, etc. in RefactoringUtil#ensureCodeBlock.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// "Surround with try/catch" "true"
|
||||
class C {
|
||||
native boolean foo() throws Exception;
|
||||
|
||||
void test() {
|
||||
try {
|
||||
if(foo() && foo())
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Surround with try/catch" "true"
|
||||
class C {
|
||||
native boolean foo() throws Exception;
|
||||
|
||||
void test() {
|
||||
if(foo() && f<caret>oo())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user