Commit 0910f912 authored by Christophe Demarey's avatar Christophe Demarey
Browse files

restore JDK 1.5 compliance.

parent 11e32855
......@@ -94,7 +94,7 @@ public class Console extends JFrame {
new ActionListener() {
public void actionPerformed(ActionEvent e) {
String cmd = input.getText();
if ( !cmd.trim().isEmpty() ) {
if ( cmd.trim().length() > 0 ) {
executeCommand( input.getText() );
} else {
// Display the command on the output console
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment