DescriptorTestCase.tearDown: safer

This commit is contained in:
Yann Cébron
2015-11-03 18:22:03 +01:00
parent 87b5e42251
commit 02a1603b98
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -156,8 +156,12 @@ public abstract class DescriptorTestCase extends DebuggerTestCase {
@Override
protected void tearDown() throws Exception {
flushDescriptors();
super.tearDown();
try {
flushDescriptors();
}
finally {
super.tearDown();
}
}
protected void expandAll(final DebuggerTree tree, final Runnable runnable) {