mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
fix codegen for natural order: IDEA-CR-23874
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public class Main {
|
||||
new Person("James", 25),
|
||||
new Person("Kelly", 12)
|
||||
);
|
||||
Person minPerson = personList.stream().filter(p -> p.getAge() > 13).min(Comparator.comparing(Comparator.naturalOrder())).orElse(null);
|
||||
Person minPerson = personList.stream().filter(p -> p.getAge() > 13).min(Comparator.naturalOrder()).orElse(null);
|
||||
|
||||
return minPerson;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user