Skip to content

Commit 912d73e

Browse files
committed
Ensure DebugInfoSourceCacheRoot.getValue() is only read when already set
1 parent 2c3c8ab commit 912d73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ private static ResolvedJavaType getOriginal(ResolvedJavaType javaType) {
244244
return null;
245245
}
246246

247-
private static final Path cachePath = SubstrateOptions.getDebugInfoSourceCacheRoot();
247+
private final Path cachePath = SubstrateOptions.getDebugInfoSourceCacheRoot();
248248

249249
private abstract class NativeImageDebugFileInfo implements DebugFileInfo {
250250
private Path fullFilePath;

0 commit comments

Comments
 (0)