Fix Java type inference in comparator chain
Build & Deploy / build-and-deploy (push) Successful in 41s
Build & Deploy / build-and-deploy (push) Successful in 41s
This commit is contained in:
@@ -261,7 +261,7 @@ public class UploadResource {
|
||||
if (candidates.isEmpty()) return null;
|
||||
|
||||
candidates.sort(Comparator
|
||||
.comparingInt(c -> c.isInstaller() ? 1 : 0) // non-installer first
|
||||
.comparingInt((Candidate c) -> c.isInstaller() ? 1 : 0) // non-installer first
|
||||
.thenComparingInt(Candidate::depth)
|
||||
.thenComparingLong(c -> -c.size())); // larger files first
|
||||
|
||||
|
||||
Reference in New Issue
Block a user