From ef0222e481cbf9f55379aecf1e8bab3124406b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 20 Nov 2018 20:07:14 +0100 Subject: [PATCH] InconsistentResourceBundleInspectionTest: super.tearDown() in finally --- .../InconsistentResourceBundleInspectionTest.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/java-i18n/testSrc/com/intellij/codeInspection/i18n/InconsistentResourceBundleInspectionTest.java b/plugins/java-i18n/testSrc/com/intellij/codeInspection/i18n/InconsistentResourceBundleInspectionTest.java index 4f472382451c..564a2fcf2781 100644 --- a/plugins/java-i18n/testSrc/com/intellij/codeInspection/i18n/InconsistentResourceBundleInspectionTest.java +++ b/plugins/java-i18n/testSrc/com/intellij/codeInspection/i18n/InconsistentResourceBundleInspectionTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2018 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. @@ -39,9 +39,14 @@ public class InconsistentResourceBundleInspectionTest extends JavaCodeInsightFix @Override protected void tearDown() throws Exception { - myInspection.clearSettings(); - myInspection = null; - super.tearDown(); + try { + myInspection.clearSettings(); + } + finally { + myInspection = null; + + super.tearDown(); + } } public void testInconsistentPlaceholders() {