Remove use of deprecated getChildNodesByType method

master
Graham 5 years ago
parent 828b130906
commit 4e3c5f3d4d
  1. 6
      deob-ast/src/main/java/dev/openrs2/deob/ast/util/ExprUtils.java

@ -80,8 +80,10 @@ public final class ExprUtils {
count++;
}
for (Expression child : expr.getChildNodesByType(Expression.class)) {
count += countNots(child);
for (Expression child : expr.findAll(Expression.class)) {
if (child != expr) {
count += countNots(child);
}
}
return count;

Loading…
Cancel
Save