Commit 2530c4b4 authored by Remi Forax's avatar Remi Forax

forget again to run google-format, it doesn't seem to run when just

running the test in Gradle
parent 357014aa
Pipeline #581 passed with stage
in 5 minutes and 47 seconds
......@@ -830,7 +830,7 @@ public class Type {
case OBJECT:
case INTERNAL:
if (opcode != Opcodes.ILOAD && opcode != Opcodes.ISTORE && opcode != Opcodes.IRETURN) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException();
}
return opcode + (Opcodes.ARETURN - Opcodes.IRETURN);
case METHOD:
......
......@@ -323,7 +323,7 @@ public class TypeTest implements Opcodes {
assertEquals(AASTORE, Type.getType("Ljava/lang/Object;").getOpcode(IASTORE));
assertEquals(AASTORE, Type.getObjectType("java/lang/Object").getOpcode(IASTORE));
assertEquals(AASTORE, Type.getType("[I").getOpcode(IASTORE));
assertEquals(RETURN, Type.VOID_TYPE.getOpcode(Opcodes.IRETURN));
assertEquals(IRETURN, Type.BOOLEAN_TYPE.getOpcode(Opcodes.IRETURN));
assertEquals(IRETURN, Type.BYTE_TYPE.getOpcode(Opcodes.IRETURN));
......@@ -338,7 +338,7 @@ public class TypeTest implements Opcodes {
assertEquals(ARETURN, Type.getType("Ljava/lang/Object;").getOpcode(Opcodes.IRETURN));
assertEquals(ARETURN, Type.getObjectType("java/lang/Object").getOpcode(Opcodes.IRETURN));
assertEquals(ARETURN, Type.getType("[I").getOpcode(Opcodes.IRETURN));
assertEquals(IADD, Type.BOOLEAN_TYPE.getOpcode(IADD));
assertEquals(IADD, Type.BYTE_TYPE.getOpcode(IADD));
assertEquals(IADD, Type.CHAR_TYPE.getOpcode(IADD));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment