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 --- javaunohelper/com/sun/star/comp/helper/Bootstrap.java | 2 +- .../test/com/sun/star/lib/uno/helper/ComponentBase_Test.java | 2 +- javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'javaunohelper') diff --git a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java index b8a3bf19a8f5..120217febea3 100644 --- a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java +++ b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java @@ -282,7 +282,7 @@ public class Bootstrap { if (i == 600) { throw new BootstrapException(ex.toString()); } - Thread.currentThread().sleep( 500 ); + Thread.sleep( 500 ); } } } catch ( BootstrapException e ) { 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