Commit 230192c0 authored by Carlos Galindo's avatar Carlos Galindo
Browse files

fix! SlicePruneVisitor doesn't need to go into members of FieldDeclaration

parent b753697d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -65,9 +65,7 @@ public class SlicePruneVisitor extends ModifierVisitor<NodeHashSet<Node>> {

    @Override
    public Visitable visit(FieldDeclaration n, NodeHashSet<Node> arg) {
        boolean keep = arg.contains(n);
        Visitable v = super.visit(n, arg);
        return keep ? v : null;
        return arg.contains(n) ? n : null;
    }

// ========== Method body visitors ==========