diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 00:12:34 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-08-06 00:13:27 +0200 |
commit | b80b7ba1791cdd9e79ed7a380b8981878f46b8a4 (patch) | |
tree | 0c9e3df7abbaf4a547af03442663a2c978ebde21 /javaunohelper | |
parent | c04c2114d9159646dddd4807d026c9fee6953817 (diff) |
Static method sleep from Thread should be accessed in a static way
Change-Id: I7d875dd74f8eff05f7a291100841779abbf5fd1c
Diffstat (limited to 'javaunohelper')
3 files changed, 4 insertions, 4 deletions
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) |