From cfa85894465dbf2d286e083d962babdf14641582 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 04 Apr 2021 14:30:21 +0000 Subject: [PATCH] UI begonnen --- src/de/uhilger/mediaz/conf/Store.java | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/de/uhilger/mediaz/conf/Store.java b/src/de/uhilger/mediaz/conf/Store.java index 2fd46c7..546aeee 100644 --- a/src/de/uhilger/mediaz/conf/Store.java +++ b/src/de/uhilger/mediaz/conf/Store.java @@ -8,16 +8,14 @@ import com.google.gson.Gson; import de.uhilger.mediaz.App; import de.uhilger.mediaz.Server; -import de.uhilger.mediaz.entity.Ablage; +import de.uhilger.mediaz.entity.Ablageort; import de.uhilger.mediaz.entity.ConfigurationElement; import java.io.BufferedReader; import java.io.File; -import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; -import java.io.InputStreamReader; import java.util.logging.Logger; /** @@ -29,7 +27,7 @@ private static final Logger logger = Logger.getLogger(Store.class.getName()); - private static final String typeAblage = "Ablage"; + private static final String typeAblageort = "Ablageort"; /** * Ein Objekt als JSON in eine Datei schreiben @@ -76,10 +74,10 @@ String json = sb.toString(); Gson gson = new Gson(); switch(type) { - case typeAblage: - return gson.fromJson(json, Ablage.class); + case typeAblageort: + return gson.fromJson(json, Ablageort.class); default: - Ablage ablage = new Ablage(); + Ablageort ablage = new Ablageort(); ablage.setName("Test"); return ablage; } -- Gitblit v1.9.3