diff --git a/java/java-tests/testData/actions/reformatFileInEditor/formatOptimizeRearrangeVcsChanges_after.java b/java/java-tests/testData/actions/reformatFileInEditor/formatOptimizeRearrangeVcsChanges_after.java index e33d32fd1c1b..ddcdfe9ab7a8 100644 --- a/java/java-tests/testData/actions/reformatFileInEditor/formatOptimizeRearrangeVcsChanges_after.java +++ b/java/java-tests/testData/actions/reformatFileInEditor/formatOptimizeRearrangeVcsChanges_after.java @@ -5,6 +5,6 @@ public class Main { protected Object obj = null; private long e = 4; - public static void main(String[] args) { + public static void main(String[] args) { } } \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/actions/ReformatCodeActionInEditorTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/actions/ReformatCodeActionInEditorTest.java index 4ba5471b93a0..0f1022bbc38b 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/actions/ReformatCodeActionInEditorTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/actions/ReformatCodeActionInEditorTest.java @@ -31,8 +31,12 @@ public class ReformatCodeActionInEditorTest extends LightPlatformCodeInsightFixt @Override public void tearDown() throws Exception { - myFixture.getFile().putUserData(FormatChangedTextUtil.TEST_REVISION_CONTENT, null); - super.tearDown(); + try { + myFixture.getFile().putUserData(FormatChangedTextUtil.TEST_REVISION_CONTENT, null); + } + finally { + super.tearDown(); + } } public void doTest(LayoutCodeOptions options) {