Changes based on Java 10 recommendations.
This commit is contained in:
@@ -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))
|
||||
|
@@ -963,7 +963,7 @@ public class QuestMasterHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
quest.newInstance();
|
||||
quest.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user