Fixed some warnings DA was getting.

This commit is contained in:
Cekis
2016-03-17 19:24:10 +00:00
parent b262d6e15f
commit 4cbc3507a7
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1625,10 +1625,10 @@ public class community_crafting extends script.base_script
{
try
{
method = cls.getDeclaredMethod(FUNCTION_NAME, null);
method = cls.getDeclaredMethod(FUNCTION_NAME);
if (method != null)
{
if (method.isAccessible() == false)
if (!method.isAccessible())
{
method.setAccessible(true);
}
@@ -1638,7 +1638,7 @@ public class community_crafting extends script.base_script
{
method = script_class_loader.NO_METHOD;
}
if (method != null && methods != null)
if (method != null)
{
methods.put(method, method);
}
+2 -2
View File
@@ -391,7 +391,7 @@ public class script_entry
{
if (params == null)
{
meth = cls.getDeclaredMethod(method, null);
meth = cls.getDeclaredMethod(method);
}
else
{
@@ -1033,7 +1033,7 @@ public class script_entry
Method meth = null;
if (params == null)
{
meth = cls.getDeclaredMethod(method, null);
meth = cls.getDeclaredMethod(method);
}
else
{