This commit is contained in:
Mohanned Anwar 2023-07-17 21:39:13 -05:00 committed by GitHub
commit 64c7ef91c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ import java.util.Locale;
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 File temporaryDir;
@ -19,7 +19,7 @@ public final class NativeUtils {
}
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 '/').");
}