From b379f5d6fa95c9c938c38ce592739ea732847821 Mon Sep 17 00:00:00 2001 From: ulrich Date: Sun, 04 Apr 2021 18:08:17 +0000 Subject: [PATCH] Durchstich Neuer Ablageort --- src/de/uhilger/mediaz/conf/Store.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/de/uhilger/mediaz/conf/Store.java b/src/de/uhilger/mediaz/conf/Store.java index 2fd46c7..fcfe3ae 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; } @@ -96,4 +94,6 @@ logger.info(parts[parts.length-2]); return parts[parts.length-2]; } + + } -- Gitblit v1.9.3