Enable checkstyle (#149)

This commit is contained in:
modmuss authored and GitHub committed 2024-07-01 09:09:16 +01:00
1 parent 2edfbc448e
commit 2cd49e6314
20 files changed
+143 -159

No files matched your search

@@ -328,6 +328,7 @@ public final class Locals {
* bear in mind that if the specified node is itself a STORE opcode,
* then we will be looking at the state of the locals PRIOR to its
* invocation
* @param fabricCompatibility Fabric compatibility level
* @return A sparse array containing a view (hopefully) of the locals at the
* specified location
*/
@@ -335,7 +336,7 @@ public final class Locals {
if (fabricCompatibility >= org.spongepowered.asm.mixin.FabricUtil.COMPATIBILITY_0_10_0) {
return Locals.getLocalsAt(classNode, method, node, Settings.DEFAULT);
} else {
return getLocalsAt_0_9_2(classNode, method, node);
return getLocalsAt092(classNode, method, node);
}
}
@@ -580,7 +581,7 @@ public final class Locals {
return frame;
}
private static LocalVariableNode[] getLocalsAt_0_9_2(ClassNode classNode, MethodNode method, AbstractInsnNode node) {
private static LocalVariableNode[] getLocalsAt092(ClassNode classNode, MethodNode method, AbstractInsnNode node) {
for (int i = 0; i < 3 && (node instanceof LabelNode || node instanceof LineNumberNode); i++) {
node = Locals.nextNode(method.instructions, node);
}