From 4cbc3507a70d4242adf2c23e55b7c4cd6a19ccb1 Mon Sep 17 00:00:00 2001 From: Cekis Date: Thu, 17 Mar 2016 19:24:10 +0000 Subject: [PATCH] Fixed some warnings DA was getting. --- .../compiled/game/script/library/community_crafting.java | 6 +++--- sku.0/sys.server/compiled/game/script/script_entry.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/library/community_crafting.java mode change 100644 => 100755 sku.0/sys.server/compiled/game/script/script_entry.java diff --git a/sku.0/sys.server/compiled/game/script/library/community_crafting.java b/sku.0/sys.server/compiled/game/script/library/community_crafting.java old mode 100644 new mode 100755 index 0b89bd66c..83433120f --- a/sku.0/sys.server/compiled/game/script/library/community_crafting.java +++ b/sku.0/sys.server/compiled/game/script/library/community_crafting.java @@ -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); } diff --git a/sku.0/sys.server/compiled/game/script/script_entry.java b/sku.0/sys.server/compiled/game/script/script_entry.java old mode 100644 new mode 100755 index 4128096d9..abea194af --- a/sku.0/sys.server/compiled/game/script/script_entry.java +++ b/sku.0/sys.server/compiled/game/script/script_entry.java @@ -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 {