mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
Using Comparator factories in a couple more cases
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -3360,7 +3360,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
|
||||
private static final Comparator<String> SHORTER_STRING_FIRST = (o1, o2) -> o1.length() - o2.length();
|
||||
private static final Comparator<String> SHORTER_STRING_FIRST = Comparator.comparingInt(String::length);
|
||||
|
||||
/**
|
||||
* Gets the {@link FilePath} representation of the "~" directory
|
||||
|
||||
Reference in new issue
Block a user