aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/export/GpxSerializer.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/export/GpxSerializer.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/export/GpxSerializer.java')
-rw-r--r--main/src/cgeo/geocaching/export/GpxSerializer.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/export/GpxSerializer.java b/main/src/cgeo/geocaching/export/GpxSerializer.java
index b2587aa..b24eb4c 100644
--- a/main/src/cgeo/geocaching/export/GpxSerializer.java
+++ b/main/src/cgeo/geocaching/export/GpxSerializer.java
@@ -57,7 +57,7 @@ public final class GpxSerializer {
public void writeGPX(List<String> allGeocodesIn, Writer writer, final ProgressListener progressListener) throws IOException {
// create a copy of the geocode list, as we need to modify it, but it might be immutable
- final ArrayList<String> allGeocodes = new ArrayList<String>(allGeocodesIn);
+ final ArrayList<String> allGeocodes = new ArrayList<>(allGeocodesIn);
this.progressListener = progressListener;
gpx.setOutput(writer);
@@ -184,8 +184,8 @@ public final class GpxSerializer {
private void writeWaypoints(final Geocache cache) throws IOException {
final List<Waypoint> waypoints = cache.getWaypoints();
- final List<Waypoint> ownWaypoints = new ArrayList<Waypoint>(waypoints.size());
- final List<Waypoint> originWaypoints = new ArrayList<Waypoint>(waypoints.size());
+ final List<Waypoint> ownWaypoints = new ArrayList<>(waypoints.size());
+ final List<Waypoint> originWaypoints = new ArrayList<>(waypoints.size());
int maxPrefix = 0;
for (final Waypoint wp : cache.getWaypoints()) {