Changes based on Java 10 recommendations.
This commit is contained in:
@@ -641,7 +641,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))
|
||||
|
@@ -1049,7 +1049,7 @@ public class QuestMasterHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
quest.newInstance();
|
||||
quest.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@@ -1 +1 @@
|
||||
-server -Dfile.encoding=UTF-8 -Djava.util.logging.manager=com.l2jmobius.log.L2LogManager -XX:+AggressiveOpts -Xnoclassgc -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:SurvivorRatio=8 -Xmx4g -Xms2g -Xmn1g
|
||||
-server -Dfile.encoding=UTF-8 -Djava.util.logging.manager=com.l2jmobius.log.L2LogManager -XX:+AggressiveOpts -Xnoclassgc -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -Xmx4g -Xms2g -Xmn1g
|
Reference in New Issue
Block a user