improve code style
This commit is contained in:
parent
46a1f6efad
commit
cd4ce044fd
|
@ -11,11 +11,13 @@ class TodoItemsStorage {
|
||||||
static final String TODO_ITEMS_SAVE_NAME = "todo-list.json";
|
static final String TODO_ITEMS_SAVE_NAME = "todo-list.json";
|
||||||
static final String TIMELESS_ITEMS_SAVE_NAME = "timeless-list.json";
|
static final String TIMELESS_ITEMS_SAVE_NAME = "timeless-list.json";
|
||||||
|
|
||||||
|
|
||||||
|
private static Gson ourTodoItemGson;
|
||||||
|
|
||||||
private TodoItemsStorage() {
|
private TodoItemsStorage() {
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Gson ourTodoItemGson;
|
|
||||||
private static Gson getGson() {
|
private static Gson getGson() {
|
||||||
if (ourTodoItemGson == null) {
|
if (ourTodoItemGson == null) {
|
||||||
GsonBuilder gsonBuilder = new GsonBuilder();
|
GsonBuilder gsonBuilder = new GsonBuilder();
|
||||||
|
|
Loading…
Reference in New Issue