diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2013-09-14 13:54:48 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2013-09-14 13:55:05 +0200 |
| commit | 42ee785d88fc81d878ec226cade1c25b82fc0bee (patch) | |
| tree | d91930bdc6c1e80d0166e1c9a05b23036ebdf799 /main/src | |
| parent | 594d975d50e0bb27eca2f8754e7f6f99728e68c1 (diff) | |
| download | cgeo-42ee785d88fc81d878ec226cade1c25b82fc0bee.zip cgeo-42ee785d88fc81d878ec226cade1c25b82fc0bee.tar.gz cgeo-42ee785d88fc81d878ec226cade1c25b82fc0bee.tar.bz2 | |
refactoring: use typed empty list instead of a List<Object>
It will remove one recently introduced warning.
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/connector/gc/GCParser.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/connector/gc/GCParser.java b/main/src/cgeo/geocaching/connector/gc/GCParser.java index fcc934f..fe7780a 100644 --- a/main/src/cgeo/geocaching/connector/gc/GCParser.java +++ b/main/src/cgeo/geocaching/connector/gc/GCParser.java @@ -35,7 +35,6 @@ import cgeo.geocaching.utils.TextUtils; import ch.boye.httpclientandroidlib.HttpResponse; import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.collections.ListUtils; import org.apache.commons.lang3.ArrayUtils; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; @@ -1658,7 +1657,7 @@ public abstract class GCParser { @NonNull public static List<LogType> parseTypes(String page) { if (StringUtils.isEmpty(page)) { - return ListUtils.EMPTY_LIST; + return Collections.emptyList(); } final List<LogType> types = new ArrayList<LogType>(); |
