Fix the bug of filtering algorithm.
This commit is contained in:
@@ -63,10 +63,10 @@ public class ActionFilter {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!actionSet.getAstNodeType().endsWith("Statement") || !"FieldDeclaration".equals(actionSet.getAstNodeType())) {
|
if (actionSet.getAstNodeType().endsWith("Statement") || "FieldDeclaration".equals(actionSet.getAstNodeType())) {
|
||||||
uselessActions.add(actionSet);
|
|
||||||
} else {
|
|
||||||
uselessActions.addAll(findoutUselessActionSets(actionSet.getSubActions(), false));
|
uselessActions.addAll(findoutUselessActionSets(actionSet.getSubActions(), false));
|
||||||
|
} else {
|
||||||
|
uselessActions.add(actionSet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user