Closed basshelal closed 2 years ago
String getVersion()
null
int getVersionMajor()
getVersion()
int getVersionMinor()
Added a single unit test to verify all of the above.
This is regarding merging the hack from https://github.com/jnr/jnr-enxio/pull/39 to a more centralized location
Addresses but does not yet complete https://github.com/jnr/jnr-ffi/issues/260
String getVersion()
gets the system property "os.version" ornull
if it wasn't foundint getVersionMajor()
gets the "major" version number, that is the first number fromgetVersion()
or -1 if none could be foundint getVersionMinor()
gets the "minor" version number, that is the second number fromgetVersion()
or -1 if none could be foundAdded a single unit test to verify all of the above.
This is regarding merging the hack from https://github.com/jnr/jnr-enxio/pull/39 to a more centralized location
Addresses but does not yet complete https://github.com/jnr/jnr-ffi/issues/260