mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-06 08:36:01 +00:00
Replace some anonymous classes with lambdas
This commit is contained in:
1 parent
ded6e2d531
commit
27d7acc810
26 files changed
+29
-171
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user