aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/maps/MapProviderFactory.java
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-07-17 19:20:35 +0200
commit65eb16770153f1751c353713b7b4a355470954ad (patch)
tree52fdfcbe990f1106b61cba40bc4dc67840cdfe44 /main/src/cgeo/geocaching/maps/MapProviderFactory.java
parentdf8983c679179c1713ee711d7afed484d617e36c (diff)
downloadcgeo-65eb16770153f1751c353713b7b4a355470954ad.zip
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.gz
cgeo-65eb16770153f1751c353713b7b4a355470954ad.tar.bz2
switch to Java 1.7
At least since march both ADT and Android Studio support Java 7 features in Android development. Let's use them.
Diffstat (limited to 'main/src/cgeo/geocaching/maps/MapProviderFactory.java')
-rw-r--r--main/src/cgeo/geocaching/maps/MapProviderFactory.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/maps/MapProviderFactory.java b/main/src/cgeo/geocaching/maps/MapProviderFactory.java
index 890274d..b31ba1e 100644
--- a/main/src/cgeo/geocaching/maps/MapProviderFactory.java
+++ b/main/src/cgeo/geocaching/maps/MapProviderFactory.java
@@ -21,7 +21,7 @@ import java.util.List;
public class MapProviderFactory {
- private final static ArrayList<MapSource> mapSources = new ArrayList<MapSource>();
+ private final static ArrayList<MapSource> mapSources = new ArrayList<>();
static {
// add GoogleMapProvider only if google api is available in order to support x86 android emulator
@@ -108,7 +108,7 @@ public class MapProviderFactory {
* remove offline map sources after changes of the settings
*/
public static void deleteOfflineMapSources() {
- final ArrayList<MapSource> deletion = new ArrayList<MapSource>();
+ final ArrayList<MapSource> deletion = new ArrayList<>();
for (MapSource mapSource : mapSources) {
if (mapSource instanceof MapsforgeMapProvider.OfflineMapSource) {
deletion.add(mapSource);