diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-01-09 09:57:54 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-01-09 09:57:54 +0100 |
| commit | c62a79a26a47fd1b91257f2e40b7e573110ffc5c (patch) | |
| tree | a7deb20f819925a66a613fe9c89a27cbf9b8c28a /main/src/cgeo/geocaching/SearchResult.java | |
| parent | f70ef5971f258a48f235cbc8266ca179d91d8a35 (diff) | |
| download | cgeo-c62a79a26a47fd1b91257f2e40b7e573110ffc5c.zip cgeo-c62a79a26a47fd1b91257f2e40b7e573110ffc5c.tar.gz cgeo-c62a79a26a47fd1b91257f2e40b7e573110ffc5c.tar.bz2 | |
refactoring: remove useless code
A much more thorough cleanup is needed in the dataflow of the
`CacheDetailActivity` class.
Diffstat (limited to 'main/src/cgeo/geocaching/SearchResult.java')
| -rw-r--r-- | main/src/cgeo/geocaching/SearchResult.java | 2 |
1 files changed, 2 insertions, 0 deletions
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<LoadFlag> loadFlags) { return CollectionUtils.isNotEmpty(geocodes) ? DataStore.loadCache(geocodes.iterator().next(), loadFlags) : null; } |
