FELIX-2119 Actually have the BaseUpdateInstallHelper class implement the Runnable interface makes creating the Thread simpler.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@918443 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
index d43d224..8ac8d46 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/BaseUpdateInstallHelper.java
@@ -32,7 +32,7 @@
import org.osgi.service.packageadmin.PackageAdmin;
-abstract class BaseUpdateInstallHelper
+abstract class BaseUpdateInstallHelper implements Runnable
{
private final File bundleFile;
@@ -46,13 +46,7 @@
{
this.bundleFile = bundleFile;
this.refreshPackages = refreshPackages;
- this.updateThread = new Thread( name )
- {
- public void run()
- {
- BaseUpdateInstallHelper.this.run();
- };
- };
+ this.updateThread = new Thread( this, name );
this.updateThread.setDaemon( true );
}
@@ -102,7 +96,7 @@
}
- void run()
+ public final void run()
{
// wait some time for the request to settle
sleepSilently( 500L );