Compare commits

...

3 Commits

Author SHA1 Message Date
Mohanned Anwar
64c548b5f5
Merge 579027bf19 into fb54d8b549 2023-05-22 17:37:54 -05:00
Mohanned Anwar
579027bf19
Update NativeUtils.java 2023-04-04 05:15:45 +03:00
Mohanned Anwar
66c5597dce
Update NativeUtils.java 2023-04-02 05:29:42 +03:00

View File

@ -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 '/').");
} }