Skip to content

Commit 7ade8bd

Browse files
committed
Fix sourcePath to String rather than URI
1 parent 1294ad7 commit 7ade8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/spring/boot2/ValueToConfigurationProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public Collection<SourceFile> generate() {
150150
J.CompilationUnit cu = fillConfigurationPropertiesTypeAttribution(
151151
jp.reset().parse(newClassText)
152152
.get(0)
153-
.withSourcePath(sourcePath.toUri()));
153+
.withSourcePath(sourcePath.toString()));
154154
generatedClasses.put(className, cu);
155155
return cu;
156156

0 commit comments

Comments
 (0)