Skip to content

Commit 38f5f04

Browse files
committed
FileLocator#initialize(int): log memory initialization for external routines (e.g., classpath routines)
1 parent 2a754d7 commit 38f5f04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileLocator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public void initialize(int size) throws IOException {
9797
// 2) sanity-check for pre-initialization using other routines
9898
// (e.g., classpath resources stream).
9999
if (this.fileInputStream != null) {
100+
SnapLoaderLogger.log(Level.INFO, getClass().getName(), "initialize(int)",
101+
"File locator already initialized using external routines with hash key #" + getHashKey());
100102
return;
101103
}
102104
try {

0 commit comments

Comments
 (0)