From 66d9d812c79f5fb45b944bce2f4c517723b1070a Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 13:57:27 +0100 Subject: [PATCH] refactoring: The HashMap commands is final now --- src/main/java/org/bitbiome/commands/CommandListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bitbiome/commands/CommandListener.java b/src/main/java/org/bitbiome/commands/CommandListener.java index ebc7dbc..5a9bcfe 100644 --- a/src/main/java/org/bitbiome/commands/CommandListener.java +++ b/src/main/java/org/bitbiome/commands/CommandListener.java @@ -5,7 +5,7 @@ import java.util.Scanner; public class CommandListener { - private HashMap commands; + private final HashMap commands; public CommandListener() { commands = new HashMap<>();