Skip to content

Commit

Permalink
Upgrade to Rewrite 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Nov 24, 2020
1 parent 12a07e4 commit 6b7afe3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/kotlin/org/openrewrite/java/testing/BeforeToAfter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
package org.openrewrite.java.testing

import org.openrewrite.Refactor
import org.openrewrite.loadVisitorsForTest
import org.openrewrite.java.JavaParser
import org.openrewrite.java.OrderImports
import org.openrewrite.loadVisitorsForTest
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file.Paths
Expand All @@ -45,7 +44,7 @@ fun main(args: Array<String>) {
.filter { change -> change.fixed != null }
.map { change -> change.fixed!! }
.forEach { fixed ->
val file = afterDir.resolve(fixed.sourcePath).toFile()
val file = afterDir.resolve(fixed.sourcePath.toString()).toFile()
if(!file.parentFile.exists()) {
file.parentFile.mkdirs()
}
Expand Down

0 comments on commit 6b7afe3

Please sign in to comment.