Permalink
Browse files

Suppress deprecation warning

  • Loading branch information...
ivan committed Apr 23, 2012
1 parent eaab465 commit a1598e0cf1500fe5f6b61180e49c11b30b91abfe
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/jvm/bsh/util/JConsole.java
@@ -173,6 +173,11 @@ public void setREPLThread(Thread replThread) {
this.replThread = replThread;
}
+ @SuppressWarnings("deprecation")
+ private void stopREPLThread() {
+ this.replThread.stop(new Error("User pressed Ctrl-C"));
+ }
+
public void requestFocus() {
super.requestFocus();
text.requestFocus();
@@ -294,7 +299,7 @@ private synchronized void type(KeyEvent e) {
&& (e.getID() == KeyEvent.KEY_PRESSED)) {
//append("^C");
if(replThread != null) {
- replThread.stop(new Error("User pressed Ctrl-C"));
+ stopREPLThread();
}
}
e.consume();

0 comments on commit a1598e0

Please sign in to comment.