aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorMichael Keppler <michael.keppler@gmx.de>2014-04-19 12:01:17 +0200
committerMichael Keppler <michael.keppler@gmx.de>2014-04-19 12:01:17 +0200
commit070461a0eab779c0067912a2406c1d9171a39e82 (patch)
tree5334b63bbb3d2b39147228d2d61e1279d96ddfc0 /main/src
parent6297ba5eece1982ce8b24ad470372c9faee8e957 (diff)
downloadcgeo-070461a0eab779c0067912a2406c1d9171a39e82.zip
cgeo-070461a0eab779c0067912a2406c1d9171a39e82.tar.gz
cgeo-070461a0eab779c0067912a2406c1d9171a39e82.tar.bz2
silence Findbugs warning
Findbugs issues an unused object warning, therefore go without an object assignment and have the suppressWarnings at the method level.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/cgeo/geocaching/list/StoredList.java6
1 files changed, 3 insertions, 3 deletions
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<Integer> runAfterwards, String newListName) {
handleListNameInput(newListName, R.string.list_dialog_create_title, R.string.list_dialog_create, new Action1<String>() {
+ // 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));