Skip to content

Commit

Permalink
Use constant instead of raw literal
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <[email protected]>
  • Loading branch information
TheSilkMiner committed Feb 28, 2025
1 parent f153fc5 commit fbaa253
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private static Object toBsmArg(final Object object) {
invokeType = Opcodes.H_INVOKESTATIC;
} else if (method.cls.isInterface()) {
invokeType = Opcodes.H_INVOKEINTERFACE;
} else if ("<init>".equals(method.name) || (method.modifiers & JavaModifiers.PRIVATE) != 0) {
} else if (CONSTRUCTOR_NAME.equals(method.name) || (method.modifiers & JavaModifiers.PRIVATE) != 0) {
invokeType = Opcodes.H_INVOKESPECIAL;
} else {
invokeType = Opcodes.H_INVOKEVIRTUAL;
Expand Down

0 comments on commit fbaa253

Please sign in to comment.