From 4ef19d1939340cf5a27abc72bb4a61ed2589b8de Mon Sep 17 00:00:00 2001 From: yeekian <53704991+yeekian@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:31:00 +0800 Subject: [PATCH] Refactor code to pass CI --- src/main/java/tutorlink/ui/Ui.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/tutorlink/ui/Ui.java b/src/main/java/tutorlink/ui/Ui.java index fef3191c6f..a09dea5862 100644 --- a/src/main/java/tutorlink/ui/Ui.java +++ b/src/main/java/tutorlink/ui/Ui.java @@ -7,20 +7,19 @@ import java.util.Scanner; public class Ui { - private Scanner in = new Scanner(System.in); - private final String LOGO = "___________ __ .____ .__ __\n" + private static final String LOGO = "___________ __ .____ .__ __\n" + "\\__ ___/_ ___/ |_ ___________| | |__| ____ | | __\n" + " | | | | \\ __\\/ _ \\_ __ \\ | | |/ \\| |/ /\n" + " | | | | /| | ( <_> ) | \\/ |___| | | \\ <\n" + " |____| |____/ |__| \\____/|__| |_______ \\__|___| /__|_ \\\n" + " \\/ \\/ \\/\n"; - private final String HALF_BREAK_LINE = + private static final String HALF_BREAK_LINE = "-------------------------"; - private final String FULL_BREAK_LINE = + private static final String FULL_BREAK_LINE = "-------------------------------------------------------------"; - private final String HELP_MESSAGE = """ + private static final String HELP_MESSAGE = """ ------------------- List of Commands -------------------- help: Displays list of commands Example: help @@ -62,6 +61,8 @@ public class Ui { Example: bye -------------------------------------------------------------"""; + private Scanner in = new Scanner(System.in); + public Ui() { }