mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ControlFlowAnalyzer: cosmetic change
GitOrigin-RevId: 5b434279775baef28d8f408cd009bb70f51155c2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a0a2a7dd5d
commit
f22fa4063b
@@ -328,11 +328,8 @@ class ControlFlowAnalyzer extends JavaElementVisitor {
|
||||
final PsiElement finallyBlock = findEnclosingFinallyBlockElement(throwingElement, elementToJumpTo);
|
||||
if (finallyBlock == null) return false;
|
||||
|
||||
List<PsiElement> unhandledExceptionCatchBlocks = finallyBlockToUnhandledExceptions.get(finallyBlock);
|
||||
if (unhandledExceptionCatchBlocks == null) {
|
||||
unhandledExceptionCatchBlocks = new ArrayList<>();
|
||||
finallyBlockToUnhandledExceptions.put(finallyBlock, unhandledExceptionCatchBlocks);
|
||||
}
|
||||
List<PsiElement> unhandledExceptionCatchBlocks =
|
||||
finallyBlockToUnhandledExceptions.computeIfAbsent(finallyBlock, k -> new ArrayList<>());
|
||||
int index = unhandledExceptionCatchBlocks.indexOf(elementToJumpTo);
|
||||
if (index == -1) {
|
||||
index = unhandledExceptionCatchBlocks.size();
|
||||
|
||||
Reference in New Issue
Block a user