BoolUtils: negate the equality token for float/double as this does not change the semantics (only >, >=, <, <= change)

This commit is contained in:
Tagir Valeev
2018-10-12 10:34:56 +07:00
parent ed64e02bee
commit 66504c8088
2 changed files with 2 additions and 2 deletions
@@ -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;
}
}