use of net.runelite.deob.deobfuscators.mapping.AnnotationMapper in project runelite by runelite.
the class UpdateMappings method update.
public void update() {
Mapper mapper = new Mapper(group1, group2);
mapper.run();
ParallelExecutorMapping mapping = mapper.getMapping();
AnnotationMapper amapper = new AnnotationMapper(group1, group2, mapping);
amapper.run();
AnnotationIntegrityChecker aic = new AnnotationIntegrityChecker(group1, group2, mapping);
aic.run();
int errors = aic.getErrors();
if (errors > 0) {
logger.warn("Errors in annotation checker, exiting");
System.exit(-1);
}
AnnotationRenamer an = new AnnotationRenamer(group2);
an.run();
}
use of net.runelite.deob.deobfuscators.mapping.AnnotationMapper in project runelite by runelite.
the class UpdateMappingsTest method map.
private void map(ClassGroup group1, ClassGroup group2) {
logger.info("Mapping group1 ({}) vs group2 ({})", desc(group1), desc(group2));
Mapper mapper = new Mapper(group1, group2);
mapper.run();
ParallelExecutorMapping mapping = mapper.getMapping();
summary(mapping, group1);
AnnotationMapper amapper = new AnnotationMapper(group1, group2, mapping);
amapper.run();
AnnotationIntegrityChecker aic = new AnnotationIntegrityChecker(group1, group2, mapping);
aic.run();
if (aic.getErrors() > 0) {
Assert.fail("Errors in annotation integrity checker");
}
AnnotationRenamer an = new AnnotationRenamer(group2);
an.run();
}
Aggregations