OpenCDSS / cdss-lib-common-java

Colorado's Decision Support Systems (CDSS) common library (Java)
GNU General Public License v3.0
0 stars 1 forks source link

Update version comparison to check parts independently #101

Closed smalers closed 3 years ago

smalers commented 3 years ago

The recently implemented StringUtil.compareUsingOperator method is being used to check software versions for test compatibility. However, the comparison is not smart enough to deal with granularity of parts. For example, x.1.x and x.14.x would result in . and 4 getting compared where only number should be compared. Also, the standard of using dev on the end of the version without preceding period is causing issues with the parsing the version and doing the comparison.

smalers commented 3 years ago

I added StringUtil.compareSemanticVersions method. Close the issue.