fix: type witness syntax for Comparator.comparingInt
Build & Deploy / build-and-deploy (push) Successful in 41s
Build & Deploy / build-and-deploy (push) Successful in 41s
This commit is contained in:
@@ -106,7 +106,7 @@ public class ExecutableDetector {
|
|||||||
|
|
||||||
if (candidates.isEmpty()) return null;
|
if (candidates.isEmpty()) return null;
|
||||||
candidates.sort(Comparator
|
candidates.sort(Comparator
|
||||||
.<Candidate, Integer>comparingInt(c -> {
|
.<Candidate>comparingInt(c -> {
|
||||||
String n = c.path().toLowerCase();
|
String n = c.path().toLowerCase();
|
||||||
return n.endsWith(".bat") ? 1 : 0; // prefer .exe/.com over .bat
|
return n.endsWith(".bat") ? 1 : 0; // prefer .exe/.com over .bat
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user