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

@@ -719,7 +719,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

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

View File

@@ -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