publicstaticvoid doTest(TestCase t) { // Get back to normal first.
doCommonClassRedefinition(Transform.class, INITIAL_CLASS_BYTES, INITIAL_DEX_BYTES);
System.out.println("Running test " + t.getClass());
printAnnotations(Transform.class);
t.runTest(new Transform());
printAnnotations(Transform.class);
}
privatestaticvoid printAnnotations(Class<?> transform) {
System.out.println("Type annotations: "
+ Arrays.toString(sortedAnno(transform.getAnnotations()))); for (Method m : transform.getDeclaredMethods()) {
System.out.println("method " + m + " -> "
+ Arrays.toString(sortedAnno(m.getDeclaredAnnotations())));
}
}
// Transforms the class publicstaticvoid doCommonClassRedefinition(Class<?> target, byte[] class_file, byte[] dex_file) {
Redefinition.doCommonClassRedefinition(target, class_file, dex_file);
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.