mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
OC-10346 AppCode marks available API as not available for deployment target 10.10
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package com.intellij.openapi.util;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public class Version {
|
||||
public class Version implements Comparable<Version> {
|
||||
public final int major;
|
||||
public final int minor;
|
||||
public final int bugfix;
|
||||
@@ -49,6 +50,10 @@ public class Version {
|
||||
return compareTo(major, minor, bugfix) < 0;
|
||||
}
|
||||
|
||||
public int compareTo(@NotNull Version version) {
|
||||
return compareTo(version.major, version.minor, version.bugfix);
|
||||
}
|
||||
|
||||
public int compareTo(@Nullable Integer major) {
|
||||
return compareTo(major, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user