From 41b68c1c140256266e219d3869ba7f481f1457c9 Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Thu, 2 Jan 2014 11:15:12 +0100 Subject: refactoring: don't use Iterable when we have a List --- main/src/cgeo/geocaching/DataStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/src/cgeo/geocaching/DataStore.java b/main/src/cgeo/geocaching/DataStore.java index c6ee9f2..a5d15a4 100644 --- a/main/src/cgeo/geocaching/DataStore.java +++ b/main/src/cgeo/geocaching/DataStore.java @@ -1338,11 +1338,11 @@ public class DataStore { } } - private static void saveLogsWithoutTransaction(final String geocode, final Iterable logs) { + private static void saveLogsWithoutTransaction(final String geocode, final List logs) { // TODO delete logimages referring these logs database.delete(dbTableLogs, "geocode = ?", new String[]{geocode}); - if (!logs.iterator().hasNext()) { + if (logs.isEmpty()) { return; } -- cgit v1.1