mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add comment.
(cherry picked from commit 13187a1bf3a108b5fc34c77ee9c1677701fc233e)
This commit is contained in:
@@ -181,7 +181,11 @@ public class BuildNumber implements Comparable<BuildNumber> {
|
||||
|
||||
@Override
|
||||
public int compareTo(@NotNull BuildNumber o) {
|
||||
//if both are snapshots then IDEA and plugin are built from sources,
|
||||
//in that case comparing baselines doesn't make sense,
|
||||
//so we treat those builds equal
|
||||
if (isSnapshot() && o.isSnapshot()) return 0;
|
||||
|
||||
if (myBaselineVersion == o.myBaselineVersion) return myBuildNumber - o.myBuildNumber;
|
||||
return myBaselineVersion - o.myBaselineVersion;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user