org/homelinux/largo/games/board/Board.java
changeset 7 93fe1f21e0d8
parent 0 e0dbaef72362
child 12 d28c1e402d82
--- a/org/homelinux/largo/games/board/Board.java
+++ b/org/homelinux/largo/games/board/Board.java
@@ -36,7 +36,7 @@
 	boolean black;
 	boolean blacksTurn;
 
-	MouseListener listener = null;
+	MouseListener listener;
 
 	/**
 	 * The init method initializes an empty board with a history.
@@ -276,8 +276,8 @@
 	 * Moves one half-move backward.
 	 */
 	public void backwards() {
-		History h1 = null;
-		History h2 = null;
+		History h1;
+		History h2;
 
 		if ( moveNr < 2)
 			return;
@@ -297,8 +297,8 @@
 	 * Moves one half-move forward.
 	 */
 	public void forward() {
-		History h1 = null;
-		History h2 = null;
+		History h1;
+		History h2;
 
 		if ( moveNr > stack.size()-2 )
 			return;
@@ -325,8 +325,8 @@
 	 * pop: undo the push operation.
 	 */
 	public void undo() {
-		History h1 = null;
-		History h2 = null;
+		History h1;
+		History h2;
 		int size = stack.size();
 
 		if ( size < 2 )