Skip to content

Commit 83c2e76

Browse files
authored
doc: Add FIXME (#811)
1 parent aa531c2 commit 83c2e76

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

components/sbm-core/src/main/java/org/springframework/sbm/engine/recipe/RewriteRecipeRunner.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
package org.springframework.sbm.engine.recipe;
2-
3-
import lombok.RequiredArgsConstructor;
4-
import org.openrewrite.*;
5-
import org.openrewrite.Recipe;
6-
import org.springframework.beans.factory.annotation.Autowired;
7-
import org.springframework.sbm.engine.context.ProjectContext;
81
/*
92
* Copyright 2021 - 2022 the original author or authors.
103
*
@@ -20,7 +13,14 @@
2013
* See the License for the specific language governing permissions and
2114
* limitations under the License.
2215
*/
16+
package org.springframework.sbm.engine.recipe;
2317

18+
import lombok.RequiredArgsConstructor;
19+
import org.openrewrite.ExecutionContext;
20+
import org.openrewrite.Recipe;
21+
import org.openrewrite.Result;
22+
import org.openrewrite.SourceFile;
23+
import org.springframework.sbm.engine.context.ProjectContext;
2424
import org.springframework.stereotype.Component;
2525

2626
import java.util.List;
@@ -31,6 +31,7 @@ public class RewriteRecipeRunner {
3131
private final RewriteMigrationResultMerger resultMerger;
3232
private final ExecutionContext executionContext;
3333

34+
// FIXME: Make this a method 'apply(org.openrewrite.Recipe)' on ProjectContext, see https://github.com/spring-projects-experimental/spring-boot-migrator/issues/803
3435
public void run(ProjectContext context, Recipe recipe) {
3536
List<? extends SourceFile> rewriteSourceFiles = context.search(new OpenRewriteSourceFilesFinder());
3637
List<Result> results = recipe.run(rewriteSourceFiles, executionContext).getResults();

0 commit comments

Comments
 (0)