mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
inline to anonymous: convert to lambda when applicable (IDEA-173821)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import java.util.*;
|
||||
|
||||
class Main {
|
||||
public class <caret>MyComparator implements Comparator<String> {
|
||||
@Override
|
||||
public int compare(String s1, String s2) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void sort(List<String> scores) {
|
||||
scores.sort(new MyComparator());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user