Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Dec 3, 2024
1 parent 03805c7 commit 7058b27
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions enigma/src/main/java/org/quiltmc/enigma/api/EnigmaProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7058b27

Please sign in to comment.