OC-10346 AppCode marks available API as not available for deployment target 10.10

This commit is contained in:
Alexander Kirillin
2014-10-22 20:13:52 +04:00
parent fdc313450b
commit 01d3aedd04
@@ -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);
}