From 20d0324a35274db359600d4c8b7458cd4ce367ac Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 29 May 2016 22:45:27 +0200 Subject: [PATCH] Code polish --- src/dorkbox/console/Input.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/dorkbox/console/Input.java b/src/dorkbox/console/Input.java index 3db2b98..558f2bd 100644 --- a/src/dorkbox/console/Input.java +++ b/src/dorkbox/console/Input.java @@ -319,18 +319,14 @@ class Input { private static void run() { - Logger logger2 = logger; - - Ansi ansi = null; - PrintStream out = System.out; - - int typedChar; - char asChar; + final Logger logger2 = logger; + final PrintStream out = System.out; final char overWriteChar = ' '; + Ansi ansi = null; + int typedChar; + char asChar; - // don't type ; in a bash shell, it quits everything - // \n is replaced by \r in unix terminal? while ((typedChar = terminal.read()) != -1) { synchronized (inputLock) { // don't let anyone add a new reader while we are still processing the current actions