Skip to content

Commit

Permalink
fix: visit non-attached java-docs (comments) same as the rest of the …
Browse files Browse the repository at this point in the history
…java-docs
  • Loading branch information
pouryafard75 committed Nov 27, 2024
1 parent fa6d471 commit fe22ca1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public boolean visit(LineComment node) {
}

public boolean visit(Javadoc node) {
//We have to check if the java doc is attached to any program element or not
//We have to check if the Javadoc is attached to any program element or not
//The attached ones, have been already visited, and we do not want to add them twice.
if (node.getParent() == null)
//Then it is javadoc which is attached to any program element,
//So it will be visited as same as the other comments but with JavaDoc label
return visitComment(node);
//Then it is Javadoc attached to any program element,
//So we do as the same as the other Javadocs in the original visitors
node.accept(JdtWithCommentsVisitor.this);
return true;
}

Expand Down

0 comments on commit fe22ca1

Please sign in to comment.