Skip to content

Commit 0219ee6

Browse files
committed
Polish "Prefer modified resources over the originals in TestCompiler"
See gh-33850
1 parent f6e1a5d commit 0219ee6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: spring-core-test/src/main/java/org/springframework/core/test/tools/DynamicJavaFileManager.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ public ClassLoader getClassLoader(Location location) {
7070
}
7171

7272
@Override
73-
public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) {
73+
public FileObject getFileForOutput(Location location, String packageName,
74+
String relativeName, FileObject sibling) {
7475
return this.dynamicResourceFiles.computeIfAbsent(relativeName, name -> {
7576
ResourceFile resourceFile = this.resourceFiles.get(name);
76-
return (resourceFile != null) ? new DynamicResourceFileObject(name, resourceFile.getContent())
77-
: new DynamicResourceFileObject(name);
77+
return (resourceFile != null) ? new DynamicResourceFileObject(name, resourceFile.getContent()) :
78+
new DynamicResourceFileObject(name);
7879
});
7980
}
8081

0 commit comments

Comments
 (0)