From eb28100b4a9a30a3c72dda7a3cc6fee227d9397b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 24 Aug 2015 13:10:04 +0200 Subject: [PATCH] =?utf8?q?Got=20rid=20of=20duplicates=20...=20Signed-off-b?= =?utf8?q?y:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../frontend/BaseDatabaseFrontend.java | 54 +------------------ 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java b/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java index 7be4a11..c941efd 100644 --- a/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java +++ b/src/org/mxchange/jcore/database/frontend/BaseDatabaseFrontend.java @@ -80,7 +80,7 @@ public abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implement * @param key Key to set * @param value Value to set or null */ - protected void addToDataSet (final String key, final String value) { + protected void addToDataSet (final String key, final Object value) { // Trace message this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N @@ -97,58 +97,6 @@ public abstract class BaseDatabaseFrontend extends BaseFrameworkSystem implement this.getLogger().trace("EXIT!"); //NOI18N } - /** - * Adds given key-value pair for any numbers to dataset instance. Both must not be null. - * - * @param key Key to set - * @param value Value to set - */ - protected void addToDataSet (final String key, final Number value) { - // Trace message - this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N - - // Is key/value null? - if (key == null) { - // Key is null - throw new NullPointerException("key is null"); //NOI18N - } else if (value == null) { - // Key is null - throw new NullPointerException("value is null"); //NOI18N - } - - // Add it to map - this.dataset.put(key, value); - - // Trace message - this.getLogger().trace("EXIT!"); //NOI18N - } - - /** - * Adds given key-value pair for any boolean to dataset instance. Both must not be null. - * - * @param key Key to set - * @param value Value to set - */ - protected void addToDataSet (final String key, final Boolean value) { - // Trace message - this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N - - // Is key/value null? - if (key == null) { - // Key is null - throw new NullPointerException("key is null"); //NOI18N - } else if (value == null) { - // Key is null - throw new NullPointerException("value is null"); //NOI18N - } - - // Add it to map - this.dataset.put(key, value); - - // Trace message - this.getLogger().trace("EXIT!"); //NOI18N - } - /** * Clears dataset instance. You should call this before you use it for * inserting data into your database. -- 2.39.5