mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 08:39:12 +00:00
Code style fix
This commit is contained in:
@@ -40,7 +40,7 @@ public class AddCallbackAdapter implements Injectable, Opcodes {
|
|||||||
Label l0 = new Label();
|
Label l0 = new Label();
|
||||||
inject.add(new LabelNode(l0));
|
inject.add(new LabelNode(l0));
|
||||||
int offset = 0;
|
int offset = 0;
|
||||||
if (args != null && args.length > 0) {
|
if (args != null) {
|
||||||
for (int arg : args) {
|
for (int arg : args) {
|
||||||
if (Modifier.isStatic(method.access)) {
|
if (Modifier.isStatic(method.access)) {
|
||||||
int loadOpcode = ASMUtils.getLoadOpcode(types[arg]
|
int loadOpcode = ASMUtils.getLoadOpcode(types[arg]
|
||||||
|
|||||||
@@ -66,13 +66,13 @@ public class XMLHookParser extends HookParser {
|
|||||||
|
|
||||||
private static final String getValue(String tag, Element element) {
|
private static final String getValue(String tag, Element element) {
|
||||||
if (element.getElementsByTagName(tag).item(0) == null) {
|
if (element.getElementsByTagName(tag).item(0) == null) {
|
||||||
throw new NullPointerException("MISSING HOOK TAG: The '"+tag+"' xml tag is missing from one of the hooks of type: "+element.getParentNode().getNodeName());
|
throw new NullPointerException("MISSING HOOK TAG: The '" + tag + "' xml tag is missing from one of the hooks of type: " + element.getParentNode().getNodeName());
|
||||||
}
|
}
|
||||||
NodeList nodes = element.getElementsByTagName(tag).item(0)
|
NodeList nodes = element.getElementsByTagName(tag).item(0)
|
||||||
.getChildNodes();
|
.getChildNodes();
|
||||||
if (nodes.getLength() == 0 || nodes.item(0) == null) {
|
if (nodes.getLength() == 0 || nodes.item(0) == null) {
|
||||||
if (Core.inVerboseMode()) {
|
if (Core.inVerboseMode()) {
|
||||||
System.err.println("WARNING: Invalid Hook "+tag+" subnode. Tag is missing or empty?");
|
System.err.println("WARNING: Invalid Hook " + tag + " subnode. Tag is missing or empty?");
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user