Skip to content

Commit

Permalink
Remove unused XML mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Sep 18, 2024
1 parent 098d75d commit 29708ef
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package nl.bertriksikken.verkeersdrukte.traffic;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.google.common.util.concurrent.Runnables;
import io.dropwizard.lifecycle.Managed;
import nl.bertriksikken.datex2.MeasuredDataPublication;
Expand Down Expand Up @@ -41,13 +39,11 @@ public final class TrafficHandler implements ITrafficHandler, Managed {
private final Map<String, INotifyData> subscriptions = new ConcurrentHashMap<>();

private final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
private final ObjectMapper xmlMapper = new XmlMapper();
private final NdwClient ndwClient;
private final MeasurementCache measurementCache;
private FeatureCollection shapeFile;

public TrafficHandler(VerkeersDrukteAppConfig config) {
xmlMapper.findAndRegisterModules();
ndwClient = NdwClient.create(config.getNdwConfig());
measurementCache = new MeasurementCache(config.getTrafficConfig().getExpiryDuration());
}
Expand Down

0 comments on commit 29708ef

Please sign in to comment.