Fix the bug of filtering algorithm.

This commit is contained in:
Kui LIU
2017-07-31 15:06:11 +02:00
parent c425055692
commit b1a1c15b2b
@@ -63,10 +63,10 @@ public class ActionFilter {
break;
}
} else {
if (!actionSet.getAstNodeType().endsWith("Statement") || !"FieldDeclaration".equals(actionSet.getAstNodeType())) {
uselessActions.add(actionSet);
} else {
if (actionSet.getAstNodeType().endsWith("Statement") || "FieldDeclaration".equals(actionSet.getAstNodeType())) {
uselessActions.addAll(findoutUselessActionSets(actionSet.getSubActions(), false));
} else {
uselessActions.add(actionSet);
}
}
}