diff --git a/src/main/java/org/arkecosystem/crypto/signature/bls/JNIEnv.java b/src/main/java/org/arkecosystem/crypto/signature/bls/JNIEnv.java index 1101ea61..54a5bbfe 100644 --- a/src/main/java/org/arkecosystem/crypto/signature/bls/JNIEnv.java +++ b/src/main/java/org/arkecosystem/crypto/signature/bls/JNIEnv.java @@ -38,7 +38,7 @@ private Boolean sourceExist(String sourceName) { } return false; } - + public void prepare() { for (String s : sources) { copy(s); @@ -50,15 +50,22 @@ public Boolean copy(String sourceName) { return true; } else { try { - String[] libraryPaths = System.getProperty("java.library.path").split(File.pathSeparator); - File f = new File(libraryPaths[0], sourceName); // Using the first path in java.library.path + String[] libraryPaths = + System.getProperty("java.library.path").split(File.pathSeparator); + File f = + new File( + libraryPaths[0], + sourceName); // Using the first path in java.library.path if (!f.exists()) { f.createNewFile(); System.out.println("[JNIDEV]:DEFAULT JNI INITION:" + sourceName); } FileOutputStream os = new FileOutputStream(f); - InputStream is = getClass().getResourceAsStream("/" + sourceName); // Modified to add leading slash + InputStream is = + getClass() + .getResourceAsStream( + "/" + sourceName); // Modified to add leading slash if (is == null) { os.close(); return false;