diff options
| author | Bananeweizen <bananeweizen@gmx.de> | 2012-11-18 09:54:03 +0100 |
|---|---|---|
| committer | Bananeweizen <bananeweizen@gmx.de> | 2012-11-18 09:54:03 +0100 |
| commit | 2e00c7a146e7718420be288e2073cc144d054f4f (patch) | |
| tree | 5d32af3fb31a6d133f7a5f4b81792368248b7b39 /main/src/cgeo/geocaching/files/GPXParser.java | |
| parent | 1acd103d9c4a4104aa54ed3c2f693f80ba12a8a6 (diff) | |
| download | cgeo-2e00c7a146e7718420be288e2073cc144d054f4f.zip cgeo-2e00c7a146e7718420be288e2073cc144d054f4f.tar.gz cgeo-2e00c7a146e7718420be288e2073cc144d054f4f.tar.bz2 | |
refactoring: lazy initialized lists
* change more users to only take Iterable interface
* return unmodifiable list only
Diffstat (limited to 'main/src/cgeo/geocaching/files/GPXParser.java')
| -rw-r--r-- | main/src/cgeo/geocaching/files/GPXParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index d8f78fc..221aa1e 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -561,7 +561,7 @@ public abstract class GPXParser extends FileParser { boolean attributeActive = Integer.parseInt(attrs.getValue("inc")) != 0; String internalId = CacheAttributeTranslator.getInternalId(attributeId, attributeActive); if (internalId != null) { - cache.addAttribute(internalId); + cache.getAttributes().add(internalId); } } } catch (NumberFormatException e) { @@ -722,7 +722,7 @@ public abstract class GPXParser extends FileParser { @Override public void end() { if (log.type != LogType.UNKNOWN) { - cache.appendLog(log); + cache.getLogs().add(log); } } }); |
