mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
ComparatorCombinatorsInspection: support parentheses around lambda
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import java.util.*;
|
||||
|
||||
public class Main {
|
||||
void sort(List<Person> persons) {
|
||||
persons.sort((first, second) -> Double.com<caret>pare(first.getName().length(), second.getName().length()));
|
||||
persons.sort((first, second) -> (Double.com<caret>pare(first.getName().length(), second.getName().length())));
|
||||
}
|
||||
|
||||
interface Person {
|
||||
|
||||
Reference in New Issue
Block a user