summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bean/com/sun/star/beans/LocalOfficeConnection.java2
-rw-r--r--bridges/test/testclient.java9
-rw-r--r--javaunohelper/com/sun/star/comp/helper/Bootstrap.java2
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/ComponentBase_Test.java2
-rw-r--r--javaunohelper/test/com/sun/star/lib/uno/helper/WeakBase_Test.java4
-rw-r--r--odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java2
-rw-r--r--qadevOOo/runner/util/utils.java2
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java2
-rw-r--r--qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java2
-rw-r--r--sc/qa/complex/calcPreview/ViewForwarder.java6
-rw-r--r--scripting/workben/ifc/scripting/SecurityDialogUtil.java2
-rw-r--r--unotest/source/java/org/openoffice/test/OfficeConnection.java2
15 files changed, 21 insertions, 26 deletions
diff --git a/bean/com/sun/star/beans/LocalOfficeConnection.java b/bean/com/sun/star/beans/LocalOfficeConnection.java
index f999ee432ff2..6d81ac6ae918 100644
--- a/bean/com/sun/star/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/beans/LocalOfficeConnection.java
@@ -242,7 +242,7 @@ public class LocalOfficeConnection
try
{
// try to connect to soffice
- Thread.currentThread().sleep( 500 );
+ Thread.sleep( 500 );
aInitialObject = xUrlResolver.resolve( mURL );
}
catch( com.sun.star.connection.NoConnectException aEx )
diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java
index 217fe962caa7..402485ccf8bf 100644
--- a/bridges/test/testclient.java
+++ b/bridges/test/testclient.java
@@ -69,9 +69,8 @@ class MyCallMe implements XCallMe
public void callOneway( /*IN*/String s, /*IN*/int nToDo ) throws com.sun.star.uno.RuntimeException
{
System.out.println( "entering callOneway" );
-// this.wait( 5 );
try {
- Thread.currentThread().sleep( 4000 );
+ Thread.sleep( 4000 );
}
catch ( java.lang.Exception e )
{
@@ -125,12 +124,8 @@ public class testclient
new Object[]{"iiop", xConnection, new MyInstanceProvider()});
System.out.println( "after building bridge" );
-// Object rInitialObject = m_bridge.mapInterfaceFrom(rootOid, XInterface.class);
-// XTestFactory rFactory =
-// UnoRuntime.queryInterface(XTestFactory.class,rInitialObject );
-// XCallMe callMerFactory->
- Thread.currentThread().sleep( 100000 );
+ Thread.sleep( 100000 );
}
}
catch( com.sun.star.uno.Exception e)
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)
diff --git a/odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java b/odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java
index 3a90b2d63313..b4ab571d7520 100644
--- a/odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java
+++ b/odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java
@@ -133,7 +133,7 @@ public class SelectionChangeListener implements XSelectionChangeListener {
}
try {
- Thread.currentThread().sleep( 500 );
+ Thread.sleep( 500 );
} catch( InterruptedException ex ) {
}
}
diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java
index 8e9f4fa7a2f4..08acdc3800ff 100644
--- a/qadevOOo/runner/util/utils.java
+++ b/qadevOOo/runner/util/utils.java
@@ -752,7 +752,7 @@ public class utils {
*/
public static void shortWait(int milliseconds) {
try {
- Thread.currentThread().sleep(milliseconds);
+ Thread.sleep(milliseconds);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
diff --git a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
index c28505aa71d9..65629ec6af10 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
@@ -124,7 +124,7 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest {
private void shortWait() {
try {
- Thread.currentThread().sleep(2000);
+ Thread.sleep(2000);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
diff --git a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
index 0b47b4c35996..a5437cda3104 100644
--- a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
+++ b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
@@ -211,7 +211,7 @@ public class _XCommandProcessor extends MultiMethodTest {
aborter.start();
try {
- Thread.currentThread().sleep(15);
+ Thread.sleep(15);
} catch (InterruptedException e) {
}
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
index d7d18f8e2914..ba6c952132eb 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
@@ -276,9 +276,9 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(500);
+ Thread.sleep(500);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
}
-} \ No newline at end of file
+}
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
index 819984ea1394..3d3d948e662d 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
@@ -264,9 +264,9 @@ public class AccessibleTabControl extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(500);
+ Thread.sleep(500);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
}
-} \ No newline at end of file
+}
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
index ea3ff9eb89f1..014dbd122cb1 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
@@ -270,7 +270,7 @@ public class AccessibleTabPage extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(1000);
+ Thread.sleep(1000);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java
index ea548d3a6c80..7d3fd9c76b31 100644
--- a/sc/qa/complex/calcPreview/ViewForwarder.java
+++ b/sc/qa/complex/calcPreview/ViewForwarder.java
@@ -893,7 +893,7 @@ public class ViewForwarder {
}
try {
- Thread.currentThread().sleep(500) ;
+ Thread.sleep(500) ;
} catch (InterruptedException e) {
System.out.println("While waiting :" + e) ;
}
@@ -996,7 +996,7 @@ public class ViewForwarder {
}
try {
- Thread.currentThread().sleep(500) ;
+ Thread.sleep(500) ;
} catch (InterruptedException e) {
System.out.println("While waiting :" + e) ;
}
@@ -1038,7 +1038,7 @@ public class ViewForwarder {
}
try {
- Thread.currentThread().sleep(500) ;
+ Thread.sleep(500) ;
} catch (InterruptedException e) {
System.out.println("While waiting :" + e) ;
}
diff --git a/scripting/workben/ifc/scripting/SecurityDialogUtil.java b/scripting/workben/ifc/scripting/SecurityDialogUtil.java
index 5a497471393d..8edb9a9083d3 100644
--- a/scripting/workben/ifc/scripting/SecurityDialogUtil.java
+++ b/scripting/workben/ifc/scripting/SecurityDialogUtil.java
@@ -81,7 +81,7 @@ public void run()
// wait for the message box to appear
try
{
- Thread.currentThread().sleep(4000) ;
+ Thread.sleep(4000) ;
}
catch (InterruptedException e)
{
diff --git a/unotest/source/java/org/openoffice/test/OfficeConnection.java b/unotest/source/java/org/openoffice/test/OfficeConnection.java
index 311392b5e771..d8774a1958c7 100644
--- a/unotest/source/java/org/openoffice/test/OfficeConnection.java
+++ b/unotest/source/java/org/openoffice/test/OfficeConnection.java
@@ -201,7 +201,7 @@ public final class OfficeConnection {
Thread t2 = new Thread("waitForProcess") {
public void run() {
try {
- Thread.currentThread().sleep(millis);
+ Thread.sleep(millis);
} catch (InterruptedException e) {}
t1.interrupt();
}