Search in sources :

Example 1 with AnnotationIntegrityChecker

use of net.runelite.deob.deobfuscators.mapping.AnnotationIntegrityChecker 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();
}
Also used : Mapper(net.runelite.deob.deobfuscators.mapping.Mapper) AnnotationMapper(net.runelite.deob.deobfuscators.mapping.AnnotationMapper) ParallelExecutorMapping(net.runelite.deob.deobfuscators.mapping.ParallelExecutorMapping) AnnotationMapper(net.runelite.deob.deobfuscators.mapping.AnnotationMapper) AnnotationIntegrityChecker(net.runelite.deob.deobfuscators.mapping.AnnotationIntegrityChecker)

Example 2 with AnnotationIntegrityChecker

use of net.runelite.deob.deobfuscators.mapping.AnnotationIntegrityChecker 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();
}
Also used : Mapper(net.runelite.deob.deobfuscators.mapping.Mapper) AnnotationMapper(net.runelite.deob.deobfuscators.mapping.AnnotationMapper) ParallelExecutorMapping(net.runelite.deob.deobfuscators.mapping.ParallelExecutorMapping) AnnotationMapper(net.runelite.deob.deobfuscators.mapping.AnnotationMapper) AnnotationIntegrityChecker(net.runelite.deob.deobfuscators.mapping.AnnotationIntegrityChecker)

Aggregations

AnnotationIntegrityChecker (net.runelite.deob.deobfuscators.mapping.AnnotationIntegrityChecker)2 AnnotationMapper (net.runelite.deob.deobfuscators.mapping.AnnotationMapper)2 Mapper (net.runelite.deob.deobfuscators.mapping.Mapper)2 ParallelExecutorMapping (net.runelite.deob.deobfuscators.mapping.ParallelExecutorMapping)2