mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-09-11 22:45:06 -04:00
Fixed some warnings DA was getting.
This commit is contained in:
Regular → Executable
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
Regular → Executable
+2
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user