Compare commits

...

1 Commits

Author SHA1 Message Date
Craig Raw
e630d31284 fix warning on unnecessary double load of openpnp-capture library
Some checks failed
Build OpenPnP Capture Java Distribution / build (8, ubuntu-latest) (push) Has been cancelled
2025-03-10 11:50:55 +02:00

View File

@ -15,7 +15,7 @@ import java.nio.IntBuffer;
*/ */
public interface OpenpnpCaptureLibrary extends Library { public interface OpenpnpCaptureLibrary extends Library {
public static final String JNA_LIBRARY_NAME = "openpnp-capture"; public static final String JNA_LIBRARY_NAME = "openpnp-capture";
public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME); //public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME);
//public static final OpenpnpCaptureLibrary INSTANCE = (OpenpnpCaptureLibrary) Native.loadLibrary(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME, OpenpnpCaptureLibrary.class); //public static final OpenpnpCaptureLibrary INSTANCE = (OpenpnpCaptureLibrary) Native.loadLibrary(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME, OpenpnpCaptureLibrary.class);
public static final OpenpnpCaptureLibrary INSTANCE = Native.load(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME, OpenpnpCaptureLibrary.class); public static final OpenpnpCaptureLibrary INSTANCE = Native.load(OpenpnpCaptureLibrary.JNA_LIBRARY_NAME, OpenpnpCaptureLibrary.class);
/** <i>native declaration : /Users/romanvg/dev/openpnp-capture/include/openpnp-capture.h</i> */ /** <i>native declaration : /Users/romanvg/dev/openpnp-capture/include/openpnp-capture.h</i> */