From 294bf505f8af528d29c194790d60b6a6a39cf9af Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Thu, 9 Feb 2017 15:04:59 +0300 Subject: [PATCH] remove yellow code --- .../testFramework/vcs/FileBasedTest.java | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/platform/vcs-impl/testSrc/com/intellij/testFramework/vcs/FileBasedTest.java b/platform/vcs-impl/testSrc/com/intellij/testFramework/vcs/FileBasedTest.java index fb246aed9a57..f5641f8346e8 100644 --- a/platform/vcs-impl/testSrc/com/intellij/testFramework/vcs/FileBasedTest.java +++ b/platform/vcs-impl/testSrc/com/intellij/testFramework/vcs/FileBasedTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2017 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. @@ -45,15 +45,12 @@ public abstract class FileBasedTest { @After public void tearDown() throws Exception { - UIUtil.invokeAndWaitIfNeeded(new Runnable() { - @Override - public void run() { - try { - myProjectFixture.tearDown(); - } - catch (Exception e) { - throw new RuntimeException(e); - } + UIUtil.invokeAndWaitIfNeeded((Runnable)() -> { + try { + myProjectFixture.tearDown(); + } + catch (Exception e) { + throw new RuntimeException(e); } }); }