Skip to content

Commit

Permalink
Checkstyle fixes - wrong variable declaration order
Browse files Browse the repository at this point in the history
  • Loading branch information
yeozongyao committed Apr 9, 2024
1 parent b361ce6 commit 925208b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/seedu/bookbuddy/booklist/BookList.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
* and marking book as read or unread.
*/
public class BookList {
public static void setAvailableGenres(List<String> availableGenres) {
BookList.availableGenres = availableGenres;
}

protected static List<String> availableGenres = new ArrayList<>(Arrays.asList("Fiction", "Non-Fiction",
"Mystery", "Science Fiction", "Fantasy"));
protected ArrayList<BookMain> books;
Expand All @@ -25,7 +21,9 @@ public BookList() {
public static List<String> getAvailableGenres() {
return availableGenres;
}

public static void setAvailableGenres(List<String> availableGenres) {
BookList.availableGenres = availableGenres;
}
/**
* Constructs a new BookList instance with an empty list.
*/
Expand Down

0 comments on commit 925208b

Please sign in to comment.