From 6815c66a0e85b8d0a891aae2c24b5623ee3f8288 Mon Sep 17 00:00:00 2001 From: zreed Date: Thu, 22 Jan 2015 07:14:14 -0500 Subject: [PATCH] Empty constructors don't take arguments --- .../com/gmail/nossr50/database/DatabaseManagerFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/DatabaseManagerFactory.java b/src/main/java/com/gmail/nossr50/database/DatabaseManagerFactory.java index da3a2ea1f..7bf9a15b4 100644 --- a/src/main/java/com/gmail/nossr50/database/DatabaseManagerFactory.java +++ b/src/main/java/com/gmail/nossr50/database/DatabaseManagerFactory.java @@ -44,7 +44,7 @@ public class DatabaseManagerFactory { */ public static void setCustomDatabaseManagerClass(Class clazz) { try { - clazz.getConstructor((Class) null); + clazz.getConstructor(); customManager = clazz; } catch (Throwable e) { @@ -78,10 +78,10 @@ public class DatabaseManagerFactory { } public static DatabaseManager createDefaultCustomDatabaseManager() throws Throwable { - return customManager.getConstructor((Class) null).newInstance((Object[]) null); + return customManager.getConstructor().newInstance(); } public static DatabaseManager createCustomDatabaseManager(Class clazz) throws Throwable { - return clazz.getConstructor((Class) null).newInstance((Object[]) null); + return clazz.getConstructor().newInstance(); } }