8000 Objects, immutability and switch expressions · allwaysoft/Java-Coding-Problems@a4623dd · GitHub
[go: up one dir, main page]

Skip to content

Commit a4623dd

Browse files
committed
Objects, immutability and switch expressions
1 parent 92eb0f8 commit a4623dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Chapter02/BONUS_1_SpringAndJavaRecords/src/main/java/modern/challenge/service/BookstoreService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ public List<Author> fetchAuthors() {
1616
new Book("History of a day", "JN-001"),
1717
new Book("Prague history", "JN-002")
1818
)),
19-
new Author("Mark Janel", "Horror", List.of(
20-
new Book("Carrie", "MJ-001"),
21-
new Book("House of pain", "MJ-002")
22-
)
19+
new Author("Mark Janel", "Horror", List.of(
20+
new Book("Carrie", "MJ-001"),
21+
new Book("House of pain", "MJ-002")
22+
)
2323
));
24-
24+
2525
return authors;
2626
}
2727
}

0 commit comments

Comments
 (0)
0