Skip to content

Commit ff94c43

Browse files
committed
Move getLibraryVersion method for improved code organization
1 parent 453eb56 commit ff94c43

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/main/java/io/github/doblon8/openpnp/capture/OpenPnpCapture.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,6 @@ public int getDeviceCount() {
4242
return Cap_getDeviceCount(context.getSegment());
4343
}
4444

45-
/**
46-
* Return the version of the library as a string.
47-
* <p>
48-
* In addition to a version number, this should contain information on the platform;
49-
* e.g. Win32/Win64/Linux32/Linux64/OSX etc., whether or not it is a release or debug build, and the build date.
50-
*
51-
* @return the version of the library as a string.
52-
*/
53-
public static String getLibraryVersion() {
54-
return Cap_getLibraryVersion().getString(0);
55-
}
56-
5745
/**
5846
* Set the logging level.
5947
*
@@ -75,6 +63,18 @@ public static void installCustomLogFunction(BiConsumer<LogLevel, String> logFunc
7563
Cap_installCustomLogFunction(functionPointer);
7664
}
7765

66+
/**
67+
* Return the version of the library as a string.
68+
* <p>
69+
* In addition to a version number, this should contain information on the platform;
70+
* e.g. Win32/Win64/Linux32/Linux64/OSX etc., whether or not it is a release or debug build, and the build date.
71+
*
72+
* @return the version of the library as a string.
73+
*/
74+
public static String getLibraryVersion() {
75+
return Cap_getLibraryVersion().getString(0);
76+
}
77+
7878
@Override
7979
public void close() throws CaptureException {
8080
context.close();

0 commit comments

Comments
 (0)