PomModelImpl: don't swallow exceptions caught in finally

This commit is contained in:
peter
2015-05-21 13:56:21 +02:00
parent 6aabd19818
commit a4030467cc
@@ -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