diff options
author | lagergren <none@none> | 2013-08-23 14:16:16 +0200 |
---|---|---|
committer | lagergren <none@none> | 2013-08-23 14:16:16 +0200 |
commit | 66b2825dd6720c360be8673e64193dd24d7ae159 (patch) | |
tree | 9efebbb2f888bba335d6e2479b34bfe984057354 /tools/fxshell | |
parent | 1f3a4e3510a8b0a3a0707b48acc6d33b4e385068 (diff) | |
download | nashorn-66b2825dd6720c360be8673e64193dd24d7ae159.tar.gz |
8023550: -d option was broken for any dir but '.'. Fixed Java warnings.
Reviewed-by: jlaskey, sundar
Diffstat (limited to 'tools/fxshell')
-rw-r--r-- | tools/fxshell/jdk/nashorn/tools/FXShell.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/fxshell/jdk/nashorn/tools/FXShell.java b/tools/fxshell/jdk/nashorn/tools/FXShell.java index df473189..fe16ca20 100644 --- a/tools/fxshell/jdk/nashorn/tools/FXShell.java +++ b/tools/fxshell/jdk/nashorn/tools/FXShell.java @@ -32,13 +32,9 @@ import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.Set; -import java.util.logging.Level; -import java.util.logging.Logger; import javafx.application.Application; import javafx.stage.Stage; import javax.script.Invocable; -import javax.script.ScriptContext; import javax.script.ScriptEngine; import javax.script.ScriptEngineFactory; import javax.script.ScriptEngineManager; @@ -180,6 +176,7 @@ public class FXShell extends Application { * * @return Last evaluation result (discarded.) */ + @SuppressWarnings("resource") private Object load(String path) { try { FileInputStream file = new FileInputStream(path); |