@@ -350,8 +350,10 @@ public void onExtractionFinalization(FileExtractor fileExtractor, FileLocator fi
350350 protected FileExtractor initializeLibraryExtractor (NativeDynamicLibrary library ) throws Exception {
351351 FileExtractor extractor ;
352352 if (library .getJarPath () != null ) {
353+ // use an extractor with the external jar routine
353354 extractor = new LibraryExtractor (new JarFile (library .getJarPath ()), library .getCompressedLibrary (), library .getExtractedLibrary ());
354355 } else {
356+ // use an extractor with the classpath routine
355357 extractor = new LibraryExtractor (library .getCompressedLibrary (), library .getExtractedLibrary ());
356358 }
357359 extractor .initialize (0 );
@@ -364,7 +366,7 @@ protected LibraryLocator preInitLibraryLocator(FileExtractor extractor) {
364366 extractor .getFileLocator ().setFileLocalizingListener (new FileLocalizingListener () {
365367 @ Override
366368 public void onFileLocalizationSuccess (FileLocator locator ) {
367- SnapLoaderLogger .log (Level .INFO , getClass ().getName (), "initializeLibraryExtractor " ,
369+ SnapLoaderLogger .log (Level .INFO , getClass ().getName (), "preInitLibraryLocator " ,
368370 "Locating native libraries has succeeded!" );
369371
370372 // bind the library locator lifecycle to the user application
@@ -375,7 +377,7 @@ public void onFileLocalizationSuccess(FileLocator locator) {
375377
376378 @ Override
377379 public void onFileLocalizationFailure (FileLocator locator , Throwable throwable ) {
378- SnapLoaderLogger .log (Level .SEVERE , getClass ().getName (), "initializeLibraryExtractor " ,
380+ SnapLoaderLogger .log (Level .SEVERE , getClass ().getName (), "preInitLibraryLocator " ,
379381 "Locating native libraries has failed!" , throwable );
380382 try {
381383 extractor .close ();
0 commit comments