From 4f5009fe0e0b63d307db314d8348208d8af6df91 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 28 Oct 2018 16:02:23 +0100 Subject: [PATCH] Moved DATABASE_FOLDER_NAME in AbstractDatabaseHandler --- .../bentobox/bentobox/database/AbstractDatabaseHandler.java | 5 +++++ .../bentobox/database/flatfile/FlatFileDatabaseHandler.java | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/database/AbstractDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/AbstractDatabaseHandler.java index 4951dd73d..202102127 100644 --- a/src/main/java/world/bentobox/bentobox/database/AbstractDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/AbstractDatabaseHandler.java @@ -15,6 +15,11 @@ import world.bentobox.bentobox.BentoBox; */ public abstract class AbstractDatabaseHandler { + /** + * Name of the folder where databases using files will live + */ + protected static final String DATABASE_FOLDER_NAME = "database"; + /** * The data object that should be created and filled with values * from the database or inserted into the database diff --git a/src/main/java/world/bentobox/bentobox/database/flatfile/FlatFileDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/flatfile/FlatFileDatabaseHandler.java index 2f790b98e..ed6765dff 100644 --- a/src/main/java/world/bentobox/bentobox/database/flatfile/FlatFileDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/flatfile/FlatFileDatabaseHandler.java @@ -49,10 +49,6 @@ import world.bentobox.bentobox.util.Util; public class FlatFileDatabaseHandler extends AbstractDatabaseHandler { - /** - * This is the name of the folder where the flat file databases will live - */ - private static final String DATABASE_FOLDER_NAME = "database"; /** * Flag to indicate if this is a config or a pure object database (difference is in comments and annotations) */