Changes based on Java 10 recommendations.

This commit is contained in:
MobiusDev
2018-08-05 19:38:51 +00:00
parent 29eb40b3fa
commit 7cbd09ae2e
94 changed files with 260 additions and 168 deletions

View File

@@ -717,7 +717,7 @@ public class MasterHandler
try
{
final Object handler = c.newInstance();
final Object handler = c.getDeclaredConstructor().newInstance();
for (Entry<IHandler<?, ?>, Method> entry : registerHandlerMethods.entrySet())
{
if ((entry.getValue() != null) && entry.getValue().getParameterTypes()[0].isInstance(handler))

View File

@@ -963,7 +963,7 @@ public class QuestMasterHandler
{
try
{
quest.newInstance();
quest.getDeclaredConstructor().newInstance();
}
catch (Exception e)
{