From 21108b2b21cf8a1a0735075aeadc09de35c57eb7 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 8 Oct 2024 17:44:10 +0100 Subject: [PATCH] remove println --- .../java/verkle/cryptography/LibIpaMultipoint.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bindings/java/java_code/src/main/java/verkle/cryptography/LibIpaMultipoint.java b/bindings/java/java_code/src/main/java/verkle/cryptography/LibIpaMultipoint.java index 6364e83..547f1ae 100644 --- a/bindings/java/java_code/src/main/java/verkle/cryptography/LibIpaMultipoint.java +++ b/bindings/java/java_code/src/main/java/verkle/cryptography/LibIpaMultipoint.java @@ -39,9 +39,7 @@ public class LibIpaMultipoint { private static final Object libraryLock = new Object(); static { - System.out.println("Loding"); ensureLibraryLoaded(); - System.out.println("Loaded"); } /** @@ -173,8 +171,7 @@ private static void loadNativeLibrary() { String osName = System.getProperty("os.name").toLowerCase(); String osArch = getNormalizedArchitecture(); String libraryResourcePath = null; - System.out.println("name: " + osName + " arch:" + osArch + " platform: " + PLATFORM_NATIVE_LIBRARY_NAME); - System.out.println(LIBRARY_NAME +" "+ PLATFORM_NATIVE_LIBRARY_NAME + " " + System.mapLibraryName(LIBRARY_NAME)); + if (osName.contains("win")) { if (osArch.contains("x86_64")) { libraryResourcePath = "/x86_64-pc-windows-gnu/" + PLATFORM_NATIVE_LIBRARY_NAME; @@ -187,7 +184,6 @@ private static void loadNativeLibrary() { if (osArch.contains("x86_64")) { libraryResourcePath = "/x86_64-apple-darwin/" + PLATFORM_NATIVE_LIBRARY_NAME; } else if (osArch.contains("aarch64")) { - System.out.println("MAC OS X found"); libraryResourcePath = "/aarch64-apple-darwin/" + PLATFORM_NATIVE_LIBRARY_NAME; } } else if (osName.contains("linux")) { @@ -199,9 +195,9 @@ private static void loadNativeLibrary() { } if (libraryResourcePath == null) { - throw new UnsupportedOperationException("Unsupported OS or architecture: " + osName + ", " + osArch); + throw new UnsupportedOperationException("Unsupported OS or architecture: " + osName + ", " + osArch); } -System.out.println(libraryResourcePath); + InputStream libraryResource = LibIpaMultipoint.class.getResourceAsStream(libraryResourcePath); if (libraryResource == null) {