mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-03 08:01:53 +01:00
Update NativeUtils.java
move function
This commit is contained in:
parent
c51fe59e2f
commit
9eb5089eae
@ -95,8 +95,8 @@ public final class NativeUtils {
|
||||
*/
|
||||
public static void loadLibraryFromJar(String path) throws IOException {
|
||||
File tempFile = unpackLibraryFromJarInternal(path);
|
||||
copyResourceToFile(path, tempFile);
|
||||
try {
|
||||
copyResourceToFile(path, tempFile);
|
||||
System.load(tempFile.getAbsolutePath());
|
||||
} finally {
|
||||
tempFile.deleteOnExit();
|
||||
|
Loading…
Reference in New Issue
Block a user