Skip to content

Commit

Permalink
traffic-a22-elaborations: adjust mapping csv location and add some te…
Browse files Browse the repository at this point in the history
…st data
  • Loading branch information
dulvui committed Jan 18, 2024
1 parent 36a1911 commit f2685b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
package it.bz.noi.a22elaborations;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
Expand All @@ -15,13 +13,9 @@
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import javax.annotation.PostConstruct;

import org.slf4j.Logger;
Expand Down Expand Up @@ -60,7 +54,7 @@ public static void main(String[] args) throws IOException, SQLException {
}

@PostConstruct
private void postConstruct() throws FileNotFoundException, IOException {
private void postConstruct() throws IOException {
sensorTypeByStation = new HashMap<>();

ClassLoader classloader = Thread.currentThread().getContextClassLoader();
Expand All @@ -73,8 +67,6 @@ private void postConstruct() throws FileNotFoundException, IOException {
String[] values = line.split(",");
String code = values[0];
String sensorType = values[1];

LOG.info("code: " + code + " type: " + stationtype);
sensorTypeByStation.put(code, sensorType);
}
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CODE, SENSOR TECHNOLOGY
674,test1
5955,test2

0 comments on commit f2685b9

Please sign in to comment.