From 9ff2ba58bd951eb7e87a9ba29853c306f3fda340 Mon Sep 17 00:00:00 2001 From: hzoerner Date: Fri, 14 Jul 2023 12:31:26 +0200 Subject: [PATCH] checkstyle --- .../matsim/prepare/counts/CreateCountsFromVMZ.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/matsim/prepare/counts/CreateCountsFromVMZ.java b/src/main/java/org/matsim/prepare/counts/CreateCountsFromVMZ.java index 7141d0b2..56730d0b 100644 --- a/src/main/java/org/matsim/prepare/counts/CreateCountsFromVMZ.java +++ b/src/main/java/org/matsim/prepare/counts/CreateCountsFromVMZ.java @@ -4,7 +4,6 @@ import org.apache.commons.csv.CSVPrinter; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; @@ -84,9 +83,9 @@ public Integer call() throws Exception { private void matchWithNetwork(Path network) throws TransformException, IOException { /* - * TODO - * how to handle count station outside of berlin? - * */ + * TODO + * how to handle count station outside of berlin? + * */ Network net; { @@ -128,18 +127,18 @@ private void matchWithNetwork(Path network) throws TransformException, IOExcepti Map, ? extends Link> links = net.getLinks(); - for (var it = stations.entrySet().iterator(); it.hasNext();) { + for (var it = stations.entrySet().iterator(); it.hasNext(); ) { Map.Entry next = it.next(); BerlinCount station = next.getValue(); - if(counts.isIgnored(String.valueOf(next.getKey()))) { + if (counts.isIgnored(String.valueOf(next.getKey()))) { it.remove(); continue; } Id manuallyMatched = counts.isManuallyMatched(String.valueOf(next.getKey())); - if(manuallyMatched != null && links.containsKey(manuallyMatched)){ + if (manuallyMatched != null && links.containsKey(manuallyMatched)) { station.linkId = manuallyMatched; index.remove(links.get(manuallyMatched)); }