Skip to content

Commit

Permalink
Also use DocCommentTree in ReloadableJava17ParserVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Sep 30, 2024
1 parent 6ebd969 commit 1e4a8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
package org.openrewrite.java.isolated;


import com.sun.source.doctree.DocCommentTree;
import com.sun.source.tree.*;
import com.sun.source.util.TreePathScanner;
import com.sun.tools.javac.code.Flags;
import com.sun.tools.javac.code.Symbol;
import com.sun.tools.javac.tree.DCTree;
import com.sun.tools.javac.tree.DocCommentTable;
import com.sun.tools.javac.tree.EndPosTable;
import com.sun.tools.javac.tree.JCTree;
Expand Down Expand Up @@ -2139,7 +2139,7 @@ private List<J.Annotation> collectAnnotations(Map<Integer, JCAnnotation> annotat
return annotations;
}

Space formatWithCommentTree(String prefix, JCTree tree, DCTree.@Nullable DCDocComment commentTree) {
Space formatWithCommentTree(String prefix, JCTree tree, @Nullable DocCommentTree commentTree) {
Space fmt = format(prefix);
if (commentTree != null) {
List<Comment> comments = fmt.getComments();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/
package org.openrewrite.maven;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.Issue;
Expand Down

0 comments on commit 1e4a8d9

Please sign in to comment.