Merge remote-tracking branch 'origin/master' into amakeev/debugger
[idea/community.git] / platform / xdebugger-impl / testSrc / com / intellij / xdebugger / XDebuggerTestUtil.java
index c95b952fecb6a9a33e1754cce3f362f75fc44a44..286cdfe43606d21a64ce5a346f0a4ef04f6870bb 100644 (file)
@@ -180,11 +180,7 @@ public class XDebuggerTestUtil {
   public static void waitForSwing() throws InterruptedException, InvocationTargetException {
     final com.intellij.util.concurrency.Semaphore s = new com.intellij.util.concurrency.Semaphore();
     s.down();
-    ApplicationManager.getApplication().invokeLater(new Runnable() {
-      public void run() {
-        s.up();
-      }
-    });
+    ApplicationManager.getApplication().invokeLater(() -> s.up());
     s.waitForUnsafe();
     UIUtil.invokeAndWaitIfNeeded(new Runnable() {
       public void run() {
@@ -379,11 +375,8 @@ public class XDebuggerTestUtil {
 
   public static void assertSourcePosition(final XValue value, VirtualFile file, int offset) {
     final XTestNavigatable n = new XTestNavigatable();
-    ApplicationManager.getApplication().runReadAction(new Runnable() {
-      @Override
-      public void run() {
-        value.computeSourcePosition(n);
-      }
+    ApplicationManager.getApplication().runReadAction(() -> {
+      value.computeSourcePosition(n);
     });
     assertNotNull(n.myPosition);
     assertEquals(file, n.myPosition.getFile());