[BugFix] Version Compare (#500)
BugFix of Version add new TestCase Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/500 Reviewed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
@@ -114,6 +114,9 @@ public class Version {
|
||||
if(this.values.get(i) > v.values.get(i)) {
|
||||
return false;
|
||||
}
|
||||
else if(this.values.get(i) < v.values.get(i)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
@@ -152,6 +155,9 @@ public class Version {
|
||||
if(this.values.get(i) < v.values.get(i)) {
|
||||
return false;
|
||||
}
|
||||
else if(this.values.get(i) > v.values.get(i)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user