From 7058b27378adf861f4afbc88c339e403081d1a3c Mon Sep 17 00:00:00 2001 From: ix0rai Date: Mon, 2 Dec 2024 21:50:59 -0600 Subject: [PATCH] checkstyle --- .../java/org/quiltmc/enigma/api/EnigmaProject.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/enigma/src/main/java/org/quiltmc/enigma/api/EnigmaProject.java b/enigma/src/main/java/org/quiltmc/enigma/api/EnigmaProject.java index bc060a7a..5b108679 100644 --- a/enigma/src/main/java/org/quiltmc/enigma/api/EnigmaProject.java +++ b/enigma/src/main/java/org/quiltmc/enigma/api/EnigmaProject.java @@ -272,13 +272,13 @@ public boolean validateParameterIndex(LocalVariableEntry parameter) { ClassNode classNode = this.getClassProvider().get(parentClass.getFullName()); if (classNode != null) { classNode.methods.stream() - .filter(node -> node.name.equals(parent.getName()) && node.desc.equals(parent.getDesc().toString())) - .findFirst().ifPresent(node -> { - // occasionally it's possible to run into a method that has parameters, yet whose max locals is 0. java is stupid. we ignore those cases - if (!(node.parameters != null && node.parameters.size() > node.maxLocals)) { - maxLocals.set(node.maxLocals); - } - }); + .filter(node -> node.name.equals(parent.getName()) && node.desc.equals(parent.getDesc().toString())) + .findFirst().ifPresent(node -> { + // occasionally it's possible to run into a method that has parameters, yet whose max locals is 0. java is stupid. we ignore those cases + if (!(node.parameters != null && node.parameters.size() > node.maxLocals)) { + maxLocals.set(node.maxLocals); + } + }); } // if maxLocals is -1 it's not found for the method and should be ignored