From 20e9c8b36e2e4c6f090cc17604b92be1a7cf1ec0 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 23 Aug 2019 21:10:19 +0200 Subject: [PATCH] Fixed documentation --- src/dev/kske/chess/board/Board.java | 1 - src/dev/kske/chess/uci/UCIListener.java | 2 +- src/dev/kske/chess/ui/MainWindow.java | 8 +++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/dev/kske/chess/board/Board.java b/src/dev/kske/chess/board/Board.java index 9079a81..234da25 100644 --- a/src/dev/kske/chess/board/Board.java +++ b/src/dev/kske/chess/board/Board.java @@ -97,7 +97,6 @@ public class Board implements Cloneable { * Moves a piece across the board without checking if the move is legal. * * @param move The move to execute - * @return The captures piece, or null if the move's destination was empty */ public void move(Move move) { Piece piece = getPos(move); diff --git a/src/dev/kske/chess/uci/UCIListener.java b/src/dev/kske/chess/uci/UCIListener.java index 75efd16..736d8ef 100644 --- a/src/dev/kske/chess/uci/UCIListener.java +++ b/src/dev/kske/chess/uci/UCIListener.java @@ -81,7 +81,7 @@ public interface UCIListener { /** * The engine sends information to the GUI. * - * @param additionalInfo Contains all pieces of information to be sent + * @param info Contains all pieces of information to be sent */ default void onInfo(UCIInfo info) {} diff --git a/src/dev/kske/chess/ui/MainWindow.java b/src/dev/kske/chess/ui/MainWindow.java index 8a04b47..9fd16a5 100644 --- a/src/dev/kske/chess/ui/MainWindow.java +++ b/src/dev/kske/chess/ui/MainWindow.java @@ -53,6 +53,9 @@ public class MainWindow { /** * Initialize the contents of the frame. */ + @SuppressWarnings( + "unused" + ) private void initialize() { mframe = new JFrame("Chess by Kai S. K. Engelbart"); mframe.setResizable(false); @@ -65,7 +68,10 @@ public class MainWindow { JPanel toolPanel = new JPanel(); btnRestart = new JButton("Restart"); - btnRestart.addActionListener((evt) -> { if (game != null) game.reset(); game.start(); }); + btnRestart.addActionListener((evt) -> { + if (game != null) game.reset(); + game.start(); + }); activeColor = Color.WHITE; btnSwapColors = new JButton("Play as black");