diff --git a/platform/testFramework/src/_LastInSuiteTest.java b/platform/testFramework/src/_LastInSuiteTest.java index 13295c58ac58..8e561990fc54 100644 --- a/platform/testFramework/src/_LastInSuiteTest.java +++ b/platform/testFramework/src/_LastInSuiteTest.java @@ -77,11 +77,7 @@ public class _LastInSuiteTest extends TestCase { LeakHunter.checkProjectLeak(); Disposer.assertIsEmpty(true); } - catch (AssertionError e) { - captureMemorySnapshot(); - throw e; - } - catch (Exception e) { + catch (AssertionError | Exception e) { captureMemorySnapshot(); throw e; }