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");