Replace some anonymous classes with lambdas

This commit is contained in:
Basil Crow committed 2021-07-05 11:14:36 -07:00
1 parent ded6e2d531
commit 27d7acc810
26 files changed
+29 -171

No files matched your search

+1 -6
View File
@@ -3365,12 +3365,7 @@ public final class FilePath implements SerializableOnlyOverRemoting {
private static final long serialVersionUID = 1L;
}
private static final Comparator<String> SHORTER_STRING_FIRST = new Comparator<String>() {
@Override
public int compare(String o1, String o2) {
return o1.length()-o2.length();
}
};
private static final Comparator<String> SHORTER_STRING_FIRST = (o1, o2) -> o1.length() - o2.length();
/**
* Gets the {@link FilePath} representation of the "~" directory