summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/process
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/c2kernel/process')
-rw-r--r--src/main/java/com/c2kernel/process/ClientShell.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/process/ClientShell.java b/src/main/java/com/c2kernel/process/ClientShell.java
index 5bb1246..d744525 100644
--- a/src/main/java/com/c2kernel/process/ClientShell.java
+++ b/src/main/java/com/c2kernel/process/ClientShell.java
@@ -36,6 +36,7 @@ public class ClientShell extends StandardClient {
}
public void run() {
+ @SuppressWarnings("resource") // closing the scanner closes system.in
Scanner scan = new Scanner(System.in);
System.out.print("> ");
while (scan.hasNextLine()) {
@@ -57,6 +58,7 @@ public class ClientShell extends StandardClient {
public static void main(String[] args) throws Exception {
Gateway.init(readC2KArgs(args));
+ @SuppressWarnings("resource") // closing the scanner closes system.in
Scanner scan = new Scanner(System.in);
int loginAttempts = 0;
ClientShell shell = null;