From c62a79a26a47fd1b91257f2e40b7e573110ffc5c Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Thu, 9 Jan 2014 09:57:54 +0100 Subject: refactoring: remove useless code A much more thorough cleanup is needed in the dataflow of the `CacheDetailActivity` class. --- main/src/cgeo/geocaching/SearchResult.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/src/cgeo/geocaching/SearchResult.java') diff --git a/main/src/cgeo/geocaching/SearchResult.java b/main/src/cgeo/geocaching/SearchResult.java index 131a01c..46ac38e 100644 --- a/main/src/cgeo/geocaching/SearchResult.java +++ b/main/src/cgeo/geocaching/SearchResult.java @@ -10,6 +10,7 @@ import cgeo.geocaching.gcvote.GCVote; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; +import org.eclipse.jdt.annotation.Nullable; import android.os.Parcel; import android.os.Parcelable; @@ -228,6 +229,7 @@ public class SearchResult implements Parcelable { return result; } + @Nullable public Geocache getFirstCacheFromResult(final EnumSet loadFlags) { return CollectionUtils.isNotEmpty(geocodes) ? DataStore.loadCache(geocodes.iterator().next(), loadFlags) : null; } -- cgit v1.1