mirror of
https://github.com/apple/pkl.git
synced 2026-04-24 01:08:34 +02:00
Convert org.pkl.executor.Version.Identifier POJO to record class (#836)
This commit is contained in:
@@ -237,14 +237,8 @@ final class Version implements Comparable<Version> {
|
|||||||
return __preReleaseIdentifiers;
|
return __preReleaseIdentifiers;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final class Identifier implements Comparable<Identifier> {
|
private record Identifier(long numericId, /*@Nullable*/ String alphanumericId)
|
||||||
private final long numericId;
|
implements Comparable<Identifier> {
|
||||||
private final /*@Nullable*/ String alphanumericId;
|
|
||||||
|
|
||||||
Identifier(long numericId, /*@Nullable*/ String alphanumericId) {
|
|
||||||
this.numericId = numericId;
|
|
||||||
this.alphanumericId = alphanumericId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(/*@Nonnull*/ @SuppressWarnings("NullableProblems") Identifier other) {
|
public int compareTo(/*@Nonnull*/ @SuppressWarnings("NullableProblems") Identifier other) {
|
||||||
|
|||||||
Reference in New Issue
Block a user