diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2022-01-13 11:15:29 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2022-01-13 11:15:29 +0100 |
commit | 831833e0ad5952e7789ede7382fe6ee6f3f535f0 (patch) | |
tree | 71513fa72595a8991853ad6200c998fdda1319aa /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java | |
parent | 3ba7c920fe516ede58001a0f8cbb5a9a6c9c2706 (diff) |
Fix comparison between manually deployed package and not, and remove outdated safeguard
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java index a0dee6c059f..3a863f21ca0 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java @@ -175,7 +175,7 @@ public class ApplicationVersion implements Comparable<ApplicationVersion> { return Boolean.compare(buildNumber().isPresent(), o.buildNumber.isPresent()); // Unknown version sorts first if (deployedDirectly || o.deployedDirectly) - return Boolean.compare(deployedDirectly, o.deployedDirectly); // Directly deployed versions sort first + return Boolean.compare( ! deployedDirectly, ! o.deployedDirectly); // Directly deployed versions sort first return Long.compare(buildNumber().getAsLong(), o.buildNumber().getAsLong()); } |