InstantRunMethodVerifier { @NonNull public static InstantRunVerifierStatus verifyMethod(MethodNode method) { VerifierMethodVisitor mv = new VerifierMethodVisitor(method); method.accept(mv); return mv.incompatibleChange.or(InstantRunVerifierStatus.COMPATIBLE); }  @NonNull static InstantRunVerifierStatus verifyMethod(MethodNode method);  }
@Test public void testMethods() { for (MethodNode method : (List<MethodNode>) targetClass.methods) { if (method.name.equals(ByteCodeUtils.CONSTRUCTOR)) { continue; } assertEquals("Failed when checking " + method.name, InstantRunVerifierStatus.REFLECTION_USED, InstantRunMethodVerifier.verifyMethod(method)); } }