mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-10 19:29:26 +01:00
Merge 579027bf19dbd7bd2009b8b7da28b2e3488ecb4c into fb54d8b54984f89f7dba90a18e7c3048421464c3
This commit is contained in:
commit
64c548b5f5
@ -10,7 +10,7 @@ import java.util.Locale;
|
|||||||
|
|
||||||
public final class NativeUtils {
|
public final class NativeUtils {
|
||||||
|
|
||||||
private static final int MIN_PREFIX_LENGTH = 3;
|
private static final short MIN_PREFIX_LENGTH = 3;
|
||||||
public static final String NATIVE_FOLDER_PATH_PREFIX = "nativeutils";
|
public static final String NATIVE_FOLDER_PATH_PREFIX = "nativeutils";
|
||||||
|
|
||||||
public static File temporaryDir;
|
public static File temporaryDir;
|
||||||
@ -19,7 +19,7 @@ public final class NativeUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static File unpackLibraryFromJarInternal(String path) throws IOException {
|
private static File unpackLibraryFromJarInternal(String path) throws IOException {
|
||||||
if (null == path || !path.startsWith("/")) {
|
if (path == null || !path.startsWith("/")) {
|
||||||
throw new IllegalArgumentException("The path has to be absolute (start with '/').");
|
throw new IllegalArgumentException("The path has to be absolute (start with '/').");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user