ControlFlowAnalyzer: cosmetic change

GitOrigin-RevId: 5b434279775baef28d8f408cd009bb70f51155c2
This commit is contained in:
Tagir Valeev
2020-01-27 06:33:15 +00:00
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();