Mercurial > lada > lada-server
changeset 1256:1d9552e05b76
Initialize map for ort attributes once and reset attribute indicator for entnahmeOrt.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 17 Jan 2017 17:28:21 +0100 |
parents | 23b75545dbf0 |
children | 423b5f620467 |
files | src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java Mon Dec 19 11:31:33 2016 +0100 +++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java Tue Jan 17 17:28:21 2017 +0100 @@ -39,6 +39,7 @@ errors = new HashMap<String, List<ReportItem>>(); currentErrors = new ArrayList<ReportItem>(); currentUOrt = new HashMap<String, String>(); + currentEOrt = new HashMap<String, String>(); } public LafRawData getData() { @@ -122,8 +123,10 @@ currentProbe.addEntnahmeOrt(currentEOrt); currentEOrt.clear(); } - currentEOrt = new HashMap<String, String>(); currentProbe = data.new Probe(); + hasEKoordinaten = false; + hasEGemeinde = false; + hasEHerkunfstland = false; } /** @@ -145,7 +148,6 @@ currentProbe.addEntnahmeOrt(currentEOrt); currentEOrt.clear(); } - currentEOrt = new HashMap<String, String>(); currentProbe = data.new Probe(); if (!currentErrors.isEmpty()) { errors.put(currentProbe.getIdentifier(), @@ -153,6 +155,9 @@ } currentErrors.clear(); currentProbe = null; + hasEKoordinaten = false; + hasEGemeinde = false; + hasEHerkunfstland = false; hasDatenbasis = false; hasMessprogramm = false; hasUmwelt = false;