Clean up build warning in AstValidator
java/com/google/javascript/jscomp/AstValidator.java:894: Note: [RhinoNodeHasChildren] Should be expressed in terms of Node::hasChildren
if (n.getFirstChild() != null) {
@@ -891,7 +891,7 @@ public final class AstValidator implements CompilerPass {
private void validateClassField(Node n) {
validateFeature(Feature.PUBLIC_CLASS_FIELDS, n);
validateNonEmptyString(n);
- if (n.getFirstChild() != null) {
+ if (n.hasChildren()) {
validateExpression(n.getFirstChild());
}
}
