Permalink
Browse files

Final

  • Loading branch information...
1 parent 6c977e0 commit 8643051910139128c10e6afb450304df86f2ecd0 @lrozenblyum committed Dec 31, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/main/java/com/leokom/chess/gui/winboard/WinboardCommanderImpl.java
View
6 src/main/java/com/leokom/chess/gui/winboard/WinboardCommanderImpl.java
@@ -112,7 +112,7 @@ public void onQuit( final QuitListener listener ) {
@Override
public void processInputFromServer() {
- String receivedCommand = communicator.receive();
+ final String receivedCommand = communicator.receive();
for ( String command : listenersWithoutParams.keySet() ) {
if ( receivedCommand.equals( command ) ) {
@@ -128,10 +128,8 @@ public void processInputFromServer() {
for ( String command : intParameterListeners.keySet() ) {
if ( receivedCommand.startsWith( command ) ) {
- intParameterListeners.get( command ).execute( Integer.parseInt(receivedCommand.split( " " )[ 1 ] ) );
+ intParameterListeners.get( command ).execute( Integer.parseInt( receivedCommand.split( " " )[ 1 ] ) );
}
}
-
-
}
}

0 comments on commit 8643051

Please sign in to comment.