Skip to content
Snippets Groups Projects
Commit 7f8b77b1 authored by George Adrian Stoica's avatar George Adrian Stoica
Browse files

refactor: rename default list constant based on best practice

parent 4c46a514
Branches
No related tags found
No related merge requests found
Pipeline #190698 passed
...@@ -19,7 +19,7 @@ import todolist.json.TodoPersistence; ...@@ -19,7 +19,7 @@ import todolist.json.TodoPersistence;
*/ */
public class TodoAppController { public class TodoAppController {
private static final String todoListWithTwoItems = """ private static final String TODO_LIST_WITH_2_ITEMS = """
{ {
"lists" : [ "lists" : [
{ {
...@@ -82,7 +82,7 @@ public class TodoAppController { ...@@ -82,7 +82,7 @@ public class TodoAppController {
} }
if (reader == null) { if (reader == null) {
// use embedded String // use embedded String
reader = new StringReader(todoListWithTwoItems); reader = new StringReader(TODO_LIST_WITH_2_ITEMS);
} }
try { try {
if (todoPersistence != null) { if (todoPersistence != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment