git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
src
/
jalview
/
javascript
/
JSFunctionExec.java
diff --git
a/src/jalview/javascript/JSFunctionExec.java
b/src/jalview/javascript/JSFunctionExec.java
index
4d7c0d4
..
29f3fa9
100644
(file)
--- a/
src/jalview/javascript/JSFunctionExec.java
+++ b/
src/jalview/javascript/JSFunctionExec.java
@@
-39,17
+39,6
@@
public class JSFunctionExec implements Runnable
jvlite.setExecutor(this);
}
jvlite.setExecutor(this);
}
- public void finalize()
- {
- jvlite = null;
- executor = null;
- if (jsExecQueue != null)
- {
- jsExecQueue.clear();
- }
- jsExecQueue = null;
- }
-
private Vector jsExecQueue;
private Thread executor = null;
private Vector jsExecQueue;
private Thread executor = null;
@@
-82,6
+71,7
@@
public class JSFunctionExec implements Runnable
executor = null;
}
executor = null;
}
+ @Override
public void run()
{
while (jsExecQueue != null)
public void run()
{
while (jsExecQueue != null)
@@
-164,6
+154,7
@@
public class JSFunctionExec implements Runnable
final Exception[] jsex = new Exception[1];
Runnable exec = new Runnable()
{
final Exception[] jsex = new Exception[1];
Runnable exec = new Runnable()
{
+ @Override
public void run()
{
try
public void run()
{
try
@@
-196,13
+187,13
@@
public class JSFunctionExec implements Runnable
if (jex instanceof netscape.javascript.JSException
&& jvlite.jsfallbackEnabled)
{
if (jex instanceof netscape.javascript.JSException
&& jvlite.jsfallbackEnabled)
{
- jsex[0] = (netscape.javascript.JSException) jex;
+ jsex[0] = jex;
if (jvlite.debug)
{
System.err.println("Falling back to javascript: url call");
}
if (jvlite.debug)
{
System.err.println("Falling back to javascript: url call");
}
- StringBuffer sb = new StringBuffer("javascript:" + _listener
- + "(");
+ StringBuffer sb = new StringBuffer(
+ "javascript:" + _listener + "(");
for (int i = 0; objects != null && i < objects.length; i++)
{
if (i > 0)
for (int i = 0; objects != null && i < objects.length; i++)
{
if (i > 0)
@@
-212,9
+203,8
@@
public class JSFunctionExec implements Runnable
sb.append("\"");
// strip out nulls and complex objects that we can't pass this
// way.
sb.append("\"");
// strip out nulls and complex objects that we can't pass this
// way.
- if (objects[i] != null
- && !(objects[i].getClass().getName()
- .indexOf("jalview") == 0))
+ if (objects[i] != null && !(objects[i].getClass().getName()
+ .indexOf("jalview") == 0))
{
sb.append(objects[i].toString());
}
{
sb.append(objects[i].toString());
}