@Test public void testRun() { UnusedFields uf = new UnusedFields(); uf.run(group); }
@Override public void run(ClassGroup group) { checkForFieldUsage(group); int count = 0; for (ClassFile cf : group.getClasses()) for (Field f : new ArrayList<>(cf.getFields())) if (!used.contains(f)) { cf.removeField(f); ++count; } logger.info("Removed " + count + " unused fields"); }
UnusedFields implements Deobfuscator { @Override public void run(ClassGroup group) { checkForFieldUsage(group); int count = 0; for (ClassFile cf : group.getClasses()) for (Field f : new ArrayList<>(cf.getFields())) if (!used.contains(f)) { cf.removeField(f); ++count; } logger.info("Removed " + count + " unused fields"); } }
UnusedFields implements Deobfuscator { @Override public void run(ClassGroup group) { checkForFieldUsage(group); int count = 0; for (ClassFile cf : group.getClasses()) for (Field f : new ArrayList<>(cf.getFields())) if (!used.contains(f)) { cf.removeField(f); ++count; } logger.info("Removed " + count + " unused fields"); }  }
UnusedFields implements Deobfuscator { @Override public void run(ClassGroup group) { checkForFieldUsage(group); int count = 0; for (ClassFile cf : group.getClasses()) for (Field f : new ArrayList<>(cf.getFields())) if (!used.contains(f)) { cf.removeField(f); ++count; } logger.info("Removed " + count + " unused fields"); }  @Override void run(ClassGroup group); }
UnusedFields implements Deobfuscator { @Override public void run(ClassGroup group) { checkForFieldUsage(group); int count = 0; for (ClassFile cf : group.getClasses()) for (Field f : new ArrayList<>(cf.getFields())) if (!used.contains(f)) { cf.removeField(f); ++count; } logger.info("Removed " + count + " unused fields"); }  @Override void run(ClassGroup group);  }