mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
BoolUtils: negate the equality token for float/double as this does not change the semantics (only >, >=, <, <= change)
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ public class Main {
|
||||
}
|
||||
|
||||
public double test(List<Person> collection) {
|
||||
double d = collection.stream().filter(person -> !(person.getAge() == 10)).mapToDouble(Person::getAge).sum();
|
||||
double d = collection.stream().filter(person -> person.getAge() != 10).mapToDouble(Person::getAge).sum();
|
||||
return d;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user