use hasTypedefType() rather than getTypedefType() != null
@@ -187,7 +187,7 @@ final class CheckJSDoc extends AbstractPostOrderCallback implements HotSwapCompi
}
private void validateTypedefs(Node n, JSDocInfo info) {
- if (info != null && info.getTypedefType() != null && isClassDecl(n)) {
+ if (info != null && info.hasTypedefType() && isClassDecl(n)) {
reportMisplaced(n, "typedef", "@typedef does not make sense on a class declaration.");
}
}
