mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix snapshot plugin compatibility: snapshots are snapshots, they should be equal without taking in account baselines.
(cherry picked from commit 4b3fbb94e9)
This commit is contained in:
@@ -181,6 +181,7 @@ public class BuildNumber implements Comparable<BuildNumber> {
|
||||
|
||||
@Override
|
||||
public int compareTo(@NotNull BuildNumber o) {
|
||||
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