Skip to content

Commit 7455893

Browse files
authored
refact: Use SearchResult to add marker (#812)
1 parent 83c2e76 commit 7455893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/sbm-recipes-boot-upgrade/src/main/java/org/springframework/sbm/boot/upgrade_27_30/report/helper/PagingAndSortingHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import org.openrewrite.ExecutionContext;
2121
import org.openrewrite.java.JavaIsoVisitor;
2222
import org.openrewrite.java.tree.J;
23+
import org.openrewrite.marker.SearchResult;
2324
import org.springframework.sbm.boot.common.conditions.IsSpringBootProject;
24-
import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportSection;
2525
import org.springframework.sbm.boot.upgrade_27_30.report.SpringBootUpgradeReportSectionHelper;
2626
import org.springframework.sbm.engine.context.ProjectContext;
2727
import org.springframework.sbm.project.resource.RewriteSourceFileHolder;
@@ -99,7 +99,7 @@ private J.ClassDeclaration ceaseVisit(J.ClassDeclaration classDecl) {
9999

100100
@NotNull
101101
private J.ClassDeclaration applyThisRecipe(J.ClassDeclaration classDecl) {
102-
return classDecl.withMarkers(classDecl.getMarkers().searchResult());
102+
return SearchResult.found(classDecl, "Found type implementing PagingAndSorting.");
103103
}
104104
});
105105
}

0 commit comments

Comments
 (0)