aboutsummaryrefslogtreecommitdiff
path: root/tools/fxshell/jdk/nashorn/tools
diff options
context:
space:
mode:
authorlagergren <none@none>2013-08-23 14:16:16 +0200
committerlagergren <none@none>2013-08-23 14:16:16 +0200
commit66b2825dd6720c360be8673e64193dd24d7ae159 (patch)
tree9efebbb2f888bba335d6e2479b34bfe984057354 /tools/fxshell/jdk/nashorn/tools
parent1f3a4e3510a8b0a3a0707b48acc6d33b4e385068 (diff)
downloadnashorn-66b2825dd6720c360be8673e64193dd24d7ae159.tar.gz
8023550: -d option was broken for any dir but '.'. Fixed Java warnings.
Reviewed-by: jlaskey, sundar
Diffstat (limited to 'tools/fxshell/jdk/nashorn/tools')
-rw-r--r--tools/fxshell/jdk/nashorn/tools/FXShell.java5
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);