From 070461a0eab779c0067912a2406c1d9171a39e82 Mon Sep 17 00:00:00 2001 From: Michael Keppler Date: Sat, 19 Apr 2014 12:01:17 +0200 Subject: silence Findbugs warning Findbugs issues an unused object warning, therefore go without an object assignment and have the suppressWarnings at the method level. --- main/src/cgeo/geocaching/list/StoredList.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src') diff --git a/main/src/cgeo/geocaching/list/StoredList.java b/main/src/cgeo/geocaching/list/StoredList.java index 6aa1975..e557fc8 100644 --- a/main/src/cgeo/geocaching/list/StoredList.java +++ b/main/src/cgeo/geocaching/list/StoredList.java @@ -147,12 +147,12 @@ public final class StoredList extends AbstractList { public void promptForListCreation(@NonNull final Action1 runAfterwards, String newListName) { handleListNameInput(newListName, R.string.list_dialog_create_title, R.string.list_dialog_create, new Action1() { + // We need to update the list cache by creating a new StoredList object here. + @SuppressWarnings("unused") @Override public void call(final String listName) { final int newId = DataStore.createList(listName); - - // We need to update the list cache by creating a new object here. - @SuppressWarnings("unused") StoredList list = new StoredList(newId, listName, 0); + new StoredList(newId, listName, 0); if (newId >= DataStore.customListIdOffset) { ActivityMixin.showToast(activity, res.getString(R.string.list_dialog_create_ok)); -- cgit v1.1