Skip to content

Commit fbaa253

Browse files
committed
Use constant instead of raw literal
Signed-off-by: TheSilkMiner <[email protected]>
1 parent f153fc5 commit fbaa253

File tree

1 file changed

+1
-1
lines changed
  • JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/indy

1 file changed

+1
-1
lines changed

JavaBytecodeCompiler/src/main/java/org/openzen/zenscript/javabytecode/compiler/indy/IndyHelpers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ private static Object toBsmArg(final Object object) {
8484
invokeType = Opcodes.H_INVOKESTATIC;
8585
} else if (method.cls.isInterface()) {
8686
invokeType = Opcodes.H_INVOKEINTERFACE;
87-
} else if ("<init>".equals(method.name) || (method.modifiers & JavaModifiers.PRIVATE) != 0) {
87+
} else if (CONSTRUCTOR_NAME.equals(method.name) || (method.modifiers & JavaModifiers.PRIVATE) != 0) {
8888
invokeType = Opcodes.H_INVOKESPECIAL;
8989
} else {
9090
invokeType = Opcodes.H_INVOKEVIRTUAL;

0 commit comments

Comments
 (0)