improve code style

This commit is contained in:
hlq07 2018-05-30 02:32:53 +08:00
parent 46a1f6efad
commit cd4ce044fd
1 changed files with 3 additions and 1 deletions

View File

@ -11,11 +11,13 @@ class TodoItemsStorage {
static final String TODO_ITEMS_SAVE_NAME = "todo-list.json";
static final String TIMELESS_ITEMS_SAVE_NAME = "timeless-list.json";
private static Gson ourTodoItemGson;
private TodoItemsStorage() {
// empty
}
private static Gson ourTodoItemGson;
private static Gson getGson() {
if (ourTodoItemGson == null) {
GsonBuilder gsonBuilder = new GsonBuilder();