summaryrefslogtreecommitdiffstats
path: root/bean/com
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-26 08:36:04 +0200
committerNoel Grandin <noel@peralex.com>2013-04-26 08:36:04 +0200
commit6f17a2f66fa2a4fec56334783410005c4f2f357a (patch)
tree728696d0f0603783e8d50b9c4c7b43f3016d51ce /bean/com
parentFrom the context of the code, this field should not be static (diff)
downloadcore-6f17a2f66fa2a4fec56334783410005c4f2f357a.tar.gz
core-6f17a2f66fa2a4fec56334783410005c4f2f357a.zip
Java cleanup, access static methods using correct syntax
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
Diffstat (limited to 'bean/com')
-rw-r--r--bean/com/sun/star/beans/LocalOfficeWindow.java2
-rw-r--r--bean/com/sun/star/comp/beans/LocalOfficeConnection.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/bean/com/sun/star/beans/LocalOfficeWindow.java b/bean/com/sun/star/beans/LocalOfficeWindow.java
index 90ddbe8a8311..7d81eb041619 100644
--- a/bean/com/sun/star/beans/LocalOfficeWindow.java
+++ b/bean/com/sun/star/beans/LocalOfficeWindow.java
@@ -274,7 +274,7 @@ public class LocalOfficeWindow
aWatchedThread = null;
stop();
- if ( aThread.interrupted() )
+ if ( Thread.interrupted() )
throw new InterruptedException();
}
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
index 27467f051c5b..c8bafaa6e9a0 100644
--- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
+++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java
@@ -315,8 +315,9 @@ public class LocalOfficeConnection
{
try
{
+ Thread.currentThread();
// try to connect to soffice
- Thread.currentThread().sleep( 500 );
+ Thread.sleep( 500 );
aInitialObject = resolve(xLocalContext, mURL);
}
catch( com.sun.star.connection.NoConnectException aEx )