mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PomModelImpl: don't swallow exceptions caught in finally
This commit is contained in:
@@ -138,8 +138,8 @@ public class PomModelImpl extends UserDataHolderBase implements PomModel {
|
||||
if (!isAllowPsiModification()) {
|
||||
throw new IncorrectOperationException("Must not modify PSI inside save listener");
|
||||
}
|
||||
List<Throwable> throwables = new ArrayList<Throwable>(0);
|
||||
synchronized(PsiLock.LOCK){
|
||||
List<Throwable> throwables = new ArrayList<Throwable>(0);
|
||||
final PomModelAspect aspect = transaction.getTransactionAspect();
|
||||
startTransaction(transaction);
|
||||
try{
|
||||
@@ -209,10 +209,9 @@ public class PomModelImpl extends UserDataHolderBase implements PomModel {
|
||||
finally {
|
||||
DebugUtil.finishPsiModification();
|
||||
}
|
||||
if (!throwables.isEmpty()) CompoundRuntimeException.doThrow(throwables);
|
||||
}
|
||||
}
|
||||
|
||||
if (!throwables.isEmpty()) CompoundRuntimeException.doThrow(throwables);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user