mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polish "Prefer modified resources over the originals in TestCompiler"
See gh-33850
This commit is contained in:
+4
-3
@@ -70,11 +70,12 @@ class DynamicJavaFileManager extends ForwardingJavaFileManager<JavaFileManager>
|
||||
}
|
||||
|
||||
@Override
|
||||
public FileObject getFileForOutput(Location location, String packageName, String relativeName, FileObject sibling) {
|
||||
public FileObject getFileForOutput(Location location, String packageName,
|
||||
String relativeName, FileObject sibling) {
|
||||
return this.dynamicResourceFiles.computeIfAbsent(relativeName, name -> {
|
||||
ResourceFile resourceFile = this.resourceFiles.get(name);
|
||||
return (resourceFile != null) ? new DynamicResourceFileObject(name, resourceFile.getContent())
|
||||
: new DynamicResourceFileObject(name);
|
||||
return (resourceFile != null) ? new DynamicResourceFileObject(name, resourceFile.getContent()) :
|
||||
new DynamicResourceFileObject(name);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user