Skip to content

Commit 53c6fb1

Browse files
committed
Fix rewrite 7.29.0 breaking changes
1 parent 6144259 commit 53c6fb1

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

src/test/kotlin/org/openrewrite/java/migrate/apache/commons/io/ApacheIOUtilsUseExplicitCharsetTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class ApacheIOUtilsUseExplicitCharsetTest : RewriteTest {
2828

2929
override fun defaults(spec: RecipeSpec) {
3030
spec.recipe(ApacheIOUtilsUseExplicitCharset(null))
31-
spec.parser(
32-
JavaParser.fromJavaVersion().classpath("commons-io").build()
33-
)
31+
spec.parser(JavaParser.fromJavaVersion().classpath("commons-io"))
3432
}
3533

3634
@Test

src/test/kotlin/org/openrewrite/java/migrate/guava/NoGuavaImmutableListOfTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class NoGuavaImmutableListOfTest : JavaRecipeTest {
332332
}
333333

334334
private fun runRecipe(input: Array<String>): List<Result> {
335-
return recipe.run(sourceFilesWithJavaVersion(input), executionContext)
335+
return recipe.run(sourceFilesWithJavaVersion(input), executionContext).results
336336
}
337337

338338
private fun sourceFilesWithJavaVersion(input: Array<String>): List<J.CompilationUnit> {

src/test/kotlin/org/openrewrite/java/migrate/guava/NoGuavaImmutableMapOfTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ class NoGuavaImmutableMapOfTest : JavaRecipeTest {
369369
}
370370

371371
private fun runRecipe(input: Array<String>): List<Result> {
372-
return recipe.run(sourceFilesWithJavaVersion(input), executionContext)
372+
return recipe.run(sourceFilesWithJavaVersion(input), executionContext).results
373373
}
374374

375375
private fun sourceFilesWithJavaVersion(input: Array<String>): List<J.CompilationUnit> {

src/test/kotlin/org/openrewrite/java/migrate/guava/NoGuavaImmutableSetOfTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class NoGuavaImmutableSetOfTest : JavaRecipeTest {
332332
}
333333

334334
private fun runRecipe(input: Array<String>): List<Result> {
335-
return recipe.run(sourceFilesWithJavaVersion(input), executionContext)
335+
return recipe.run(sourceFilesWithJavaVersion(input), executionContext).results
336336
}
337337

338338
private fun sourceFilesWithJavaVersion(input: Array<String>): List<J.CompilationUnit> {

src/test/kotlin/org/openrewrite/java/migrate/lang/StringFormattedTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.openrewrite.test.RewriteTest
2525
class StringFormattedTest : RewriteTest {
2626
override fun defaults(spec: RecipeSpec) {
2727
spec.recipe(StringFormatted())
28-
spec.parser(JavaParser.fromJavaVersion().build())
28+
spec.parser(JavaParser.fromJavaVersion())
2929
}
3030

3131
@Test

0 commit comments

Comments
 (0)