diff --git a/src/main/java/com/google/devtools/build/lib/packages/AutoloadSymbols.java b/src/main/java/com/google/devtools/build/lib/packages/AutoloadSymbols.java index 1de7d085e0e0ef..4df154fb903709 100644 --- a/src/main/java/com/google/devtools/build/lib/packages/AutoloadSymbols.java +++ b/src/main/java/com/google/devtools/build/lib/packages/AutoloadSymbols.java @@ -405,7 +405,7 @@ public ImmutableMap getLoadKeys(SkyFunction.Environmen toImmutableMap( ModuleKey::getName, moduleKey -> moduleKey, - (m1, m2) -> m1.getVersion().compareTo(m2.getVersion()) >= 0 ? m1 : m1)); + (m1, m2) -> m1.getVersion().compareTo(m2.getVersion()) >= 0 ? m1 : m2)); RepositoryMapping repositoryMapping = RepositoryMapping.create( highestVersions.entrySet().stream()