From b80b7ba1791cdd9e79ed7a380b8981878f46b8a4 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 6 Aug 2012 00:12:34 +0200 Subject: Static method sleep from Thread should be accessed in a static way Change-Id: I7d875dd74f8eff05f7a291100841779abbf5fd1c --- .../test/com/sun/star/lib/uno/helper/ComponentBase_Test.java | 2 +- javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'javaunohelper/test') diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java index 68b1f1a14015..c452fc5c0f4d 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java @@ -102,7 +102,7 @@ public class ComponentBase_Test { try { - Thread.currentThread().sleep(100); + Thread.sleep(100); System.gc(); System.runFinalization(); }catch (InterruptedException ie) diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java index 25e93eb375cf..f70f1b210993 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java @@ -128,7 +128,7 @@ public class WeakBase_Test { try { - Thread.currentThread().sleep(100); + Thread.sleep(100); System.gc(); System.runFinalization(); }catch (InterruptedException ie) @@ -157,7 +157,7 @@ public class WeakBase_Test { try { - Thread.currentThread().sleep(100); + Thread.sleep(100); System.gc(); System.runFinalization(); }catch (InterruptedException ie) -- cgit