mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Build: fix version sorting
Prevents us from incorrectly thinking the current version is the bwc version.
This commit is contained in:
parent
160a049930
commit
a301bbbe8b
@ -24,7 +24,7 @@ import groovy.transform.Sortable
|
||||
/**
|
||||
* Encapsulates comparison and printing logic for an x.y.z version.
|
||||
*/
|
||||
@Sortable
|
||||
@Sortable(includes=['id'])
|
||||
public class Version {
|
||||
|
||||
final int major
|
||||
@ -60,10 +60,6 @@ public class Version {
|
||||
return "${major}.${minor}.${bugfix}${snapshotStr}"
|
||||
}
|
||||
|
||||
public boolean equals(Version compareTo) {
|
||||
return id == compareTo.id
|
||||
}
|
||||
|
||||
public boolean before(String compareTo) {
|
||||
return id < fromString(compareTo).id
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user