aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2022-01-13 11:15:29 +0100
committerJon Marius Venstad <venstad@gmail.com>2022-01-13 11:15:29 +0100
commit831833e0ad5952e7789ede7382fe6ee6f3f535f0 (patch)
tree71513fa72595a8991853ad6200c998fdda1319aa /controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/deployment/ApplicationVersion.java
parent3ba7c920fe516ede58001a0f8cbb5a9a6c9c2706 (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.java2
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());
}