mirror of
https://github.com/apple/pkl.git
synced 2026-03-27 19:41:18 +01: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;
|
||||
}
|
||||
|
||||
private static final class Identifier implements Comparable<Identifier> {
|
||||
private final long numericId;
|
||||
private final /*@Nullable*/ String alphanumericId;
|
||||
|
||||
Identifier(long numericId, /*@Nullable*/ String alphanumericId) {
|
||||
this.numericId = numericId;
|
||||
this.alphanumericId = alphanumericId;
|
||||
}
|
||||
private record Identifier(long numericId, /*@Nullable*/ String alphanumericId)
|
||||
implements Comparable<Identifier> {
|
||||
|
||||
@Override
|
||||
public int compareTo(/*@Nonnull*/ @SuppressWarnings("NullableProblems") Identifier other) {
|
||||
|
||||
Reference in New Issue
Block a user