diff options
author | Deepak Bhole <[email protected]> | 2010-12-06 15:34:01 -0500 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2010-12-06 15:34:01 -0500 |
commit | 6ca1a9a369b10703da9af8f8a1ced0f3b02ae5c2 (patch) | |
tree | 568f8e454db94fa8abc896b46ce8cac7a9f3b74d /plugin/icedteanp/java/netscape/javascript/JSRunnable.java | |
parent | 0d66adf24179c33bbdccaacc10d4c8a5f5e2cd54 (diff) |
Fixed indentation and spacing for all .java files.
Added a new .settings directory which contains Eclipse
preferences for code style.
Diffstat (limited to 'plugin/icedteanp/java/netscape/javascript/JSRunnable.java')
-rw-r--r-- | plugin/icedteanp/java/netscape/javascript/JSRunnable.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/plugin/icedteanp/java/netscape/javascript/JSRunnable.java b/plugin/icedteanp/java/netscape/javascript/JSRunnable.java index 8f1cf72..df245a7 100644 --- a/plugin/icedteanp/java/netscape/javascript/JSRunnable.java +++ b/plugin/icedteanp/java/netscape/javascript/JSRunnable.java @@ -45,28 +45,28 @@ import sun.applet.PluginDebug; * Runs a JavaScript object with a run() method in a separate thread. */ public class JSRunnable implements Runnable { - private JSObject runnable; + private JSObject runnable; - public JSRunnable(JSObject runnable) { - this.runnable = runnable; - synchronized(this) { - new Thread(this).start(); - try { - this.wait(); - } catch (InterruptedException ie) { - } - } - } - - public void run() { - try { - runnable.call("run", null); - synchronized(this) { - notifyAll(); - } - } catch (Throwable t) { - PluginDebug.debug(t.toString()); - t.printStackTrace(System.err); - } - } + public JSRunnable(JSObject runnable) { + this.runnable = runnable; + synchronized (this) { + new Thread(this).start(); + try { + this.wait(); + } catch (InterruptedException ie) { + } + } + } + + public void run() { + try { + runnable.call("run", null); + synchronized (this) { + notifyAll(); + } + } catch (Throwable t) { + PluginDebug.debug(t.toString()); + t.printStackTrace(System.err); + } + } } |