diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2014-11-03 22:40:56 +0100 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2014-11-03 22:40:56 +0100 |
| commit | b0bab020d72cb863ab9500943dcc9bf246019c54 (patch) | |
| tree | 1a2641a509f24284008cdb80e23f28021db7786c /main/src | |
| parent | bde433e3d19943b8e176e2e75b25a2bf9d51579d (diff) | |
| download | cgeo-b0bab020d72cb863ab9500943dcc9bf246019c54.zip cgeo-b0bab020d72cb863ab9500943dcc9bf246019c54.tar.gz cgeo-b0bab020d72cb863ab9500943dcc9bf246019c54.tar.bz2 | |
refactoring: use typed version of empty list
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/cgeo/geocaching/location/Geocoder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/location/Geocoder.java b/main/src/cgeo/geocaching/location/Geocoder.java index 0334448..1582daa 100644 --- a/main/src/cgeo/geocaching/location/Geocoder.java +++ b/main/src/cgeo/geocaching/location/Geocoder.java @@ -36,7 +36,7 @@ public class Geocoder { return geocoder.getFromLocationName(keyword, 20); } catch (final Exception e) { handleException(e); - return Collections.EMPTY_LIST; + return Collections.emptyList(); } } @@ -45,7 +45,7 @@ public class Geocoder { return geocoder.getFromLocation(coords.getLatitude(), coords.getLongitude(), 20); } catch (final IOException e) { handleException(e); - return Collections.EMPTY_LIST; + return Collections.emptyList(); } } |
