Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

Commit 7ebe9bf

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents f39704f + 9dc6a9e commit 7ebe9bf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/net/raphimc/javadowngrader/transformer/j14/methodcallreplacer/CharSequenceIsEmptyMCR.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ public InsnList getReplacement(ClassNode classNode, MethodNode method, String or
3333
// CharSequence
3434
replacement.add(new MethodInsnNode(Opcodes.INVOKEINTERFACE, "java/lang/CharSequence", "length", "()I"));
3535
// int
36-
replacement.add(new InsnNode(Opcodes.ICONST_0));
37-
// int, int
38-
replacement.add(new JumpInsnNode(Opcodes.IF_ICMPNE, ifNeq));
36+
replacement.add(new JumpInsnNode(Opcodes.IFNE, ifNeq));
3937

4038
//
4139
replacement.add(new InsnNode(Opcodes.ICONST_1));

0 commit comments

Comments
 (0)