From 3b1d829bbf1a1da8cacd4d33fad627c55c775b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Heredero?= Date: Fri, 5 May 2023 16:25:15 +0200 Subject: [PATCH] fix dataPointMap --- src/main/java/ch/hevs/isi/core/DataPoint.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/ch/hevs/isi/core/DataPoint.java b/src/main/java/ch/hevs/isi/core/DataPoint.java index f589dd2..47f51e8 100644 --- a/src/main/java/ch/hevs/isi/core/DataPoint.java +++ b/src/main/java/ch/hevs/isi/core/DataPoint.java @@ -4,16 +4,14 @@ import ch.hevs.isi.db.DatabaseConnector; import ch.hevs.isi.field.FieldConnector; import ch.hevs.isi.web.WebConnector; +import java.util.HashMap; import java.util.Map; public abstract class DataPoint{ - private static Map dataPointMap; + private static Map dataPointMap = new HashMap<>(); private String label; private boolean isOutput; protected DataPoint(String label, boolean isOutput){ - if(dataPointMap.containsKey(label)){ - - } this.label = label; this.isOutput = isOutput; }