From 5f0b9ba0038160e024823ce05b799d00b7a526f7 Mon Sep 17 00:00:00 2001 From: nur-haziq Date: Mon, 15 Apr 2024 20:31:17 +0800 Subject: [PATCH] Parser.java: Add explicit 'Fallthrough' statement for certain cases --- src/main/java/seedu/binbash/parser/Parser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/seedu/binbash/parser/Parser.java b/src/main/java/seedu/binbash/parser/Parser.java index 000c5b9f76..c57dcb1ab3 100644 --- a/src/main/java/seedu/binbash/parser/Parser.java +++ b/src/main/java/seedu/binbash/parser/Parser.java @@ -60,7 +60,9 @@ public Command parseCommand(String userInput) throws InvalidCommandException { switch (commandString) { case "bye": + //Fallthrough case "exit": + //Fallthrough case "quit": return new ByeCommand(); case "add":