Skip to content

Commit

Permalink
Solve checkstyle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TVageesan committed Nov 12, 2024
1 parent b0ad264 commit b770f5b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/main/java/BuffBuddy.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import java.util.NoSuchElementException;

/**
* Represents the main class of the BuffBuddy application, a fitness tracking
* program designed to manage user commands, interact with storage, display UI messages,
* and maintain a history of commands and user programs.
*/
* Represents the main class of the BuffBuddy application, a fitness tracking
* program designed to manage user commands, interact with storage, display UI messages,
* and maintain a history of commands and user programs.
*/

public class BuffBuddy {
private static final String DEFAULT_FILE_PATH = "./data/data.json";
Expand All @@ -33,34 +33,34 @@ public BuffBuddy(String filePath) {
ui.showMessage(storage.getMessage());
}

/**
* Main entry point for the BuffBuddy application.
* Initializes a BuffBuddy instance with the default file path and
* starts the main command handling loop.
*
* @param args Command-line arguments (unused).
*/
/**
* Main entry point for the BuffBuddy application.
* Initializes a BuffBuddy instance with the default file path and
* starts the main command handling loop.
*
* @param args Command-line arguments (unused).
*/

public static void main(String[] args) {
new BuffBuddy(DEFAULT_FILE_PATH).run();
}

/**
* Runs the main program loop for BuffBuddy, displaying a welcome message,
* handling user commands, and displaying a farewell message upon exit.
*/
* Runs the main program loop for BuffBuddy, displaying a welcome message,
* handling user commands, and displaying a farewell message upon exit.
*/

public void run() {
ui.showWelcome();
handleCommands();
ui.showFarewell();
}

/**
* Handles the command processing loop, reading commands from the user,
* parsing them, executing the corresponding actions, and saving data.
* Exits the loop when an ExitCommand is issued.
*/
/**
* Handles the command processing loop, reading commands from the user,
* parsing them, executing the corresponding actions, and saving data.
* Exits the loop when an ExitCommand is issued.
*/

private void handleCommands() {
while(true) {
Expand Down

0 comments on commit b770f5b

Please sign in to comment.