Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Suppress deprecation warning

  • Loading branch information...
commit a1598e0cf1500fe5f6b61180e49c11b30b91abfe 1 parent eaab465
Ivan Kozik authored April 23, 2012

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  src/jvm/bsh/util/JConsole.java
7  src/jvm/bsh/util/JConsole.java
@@ -173,6 +173,11 @@ public void setREPLThread(Thread replThread) {
173 173
 		this.replThread = replThread;
174 174
 	}
175 175
 
  176
+	@SuppressWarnings("deprecation")
  177
+	private void stopREPLThread() {
  178
+		this.replThread.stop(new Error("User pressed Ctrl-C"));
  179
+	}
  180
+
176 181
 	public void requestFocus() {
177 182
 		super.requestFocus();
178 183
 		text.requestFocus();
@@ -294,7 +299,7 @@ private synchronized void type(KeyEvent e) {
294 299
 						&& (e.getID() == KeyEvent.KEY_PRESSED)) {
295 300
 						//append("^C");
296 301
 						if(replThread != null) {
297  
-							replThread.stop(new Error("User pressed Ctrl-C"));
  302
+							stopREPLThread();
298 303
 						}
299 304
 					}
300 305
 					e.consume();

0 notes on commit a1598e0

Please sign in to comment.
Something went wrong with that request. Please try again.