ComparatorCombinatorsInspection: support parentheses around lambda

This commit is contained in:
Tagir Valeev
2018-07-10 14:13:43 +07:00
parent c8eb903c46
commit 105bd77c57
2 changed files with 2 additions and 2 deletions
@@ -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 {