cid#1327023 to cid#1327077 SIC: Inner class could be made static

Change-Id: I41f89c4feefe4e012d72c663ebb9bbcb4aa7f163
This commit is contained in:
Noel Grandin
2015-10-15 08:54:31 +02:00
parent 301764855e
commit a1624a8ecd
50 changed files with 62 additions and 63 deletions

View File

@@ -195,7 +195,7 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
private ScriptEditorForJavaScript(XScriptContext context, URL url) {
initUI();
Scriptable scope = getScope(context);
rhinoWindow.openFile(url, scope, new closeHandler(url));
rhinoWindow.openFile(url, scope, new CloseHandler(url));
this.scriptURL = url;
}
@@ -294,11 +294,11 @@ public class ScriptEditorForJavaScript implements ScriptEditor {
return scope;
}
private class closeHandler implements Runnable {
private static class CloseHandler implements Runnable {
private final URL url;
private closeHandler(URL url) {
private CloseHandler(URL url) {
this.url = url;
}