Fix construction of NullSafeComparator in nullsLow

Previously, both nullsLow(Comparator<T>) and
nullsHigh(Comparator<T>) returned a
NullSafeComparator which treated nulls as being
high. This commit corrects this typo.
This commit is contained in:
Sam Hubbard 2018-10-05 12:09:47 +01:00 committed by Juergen Hoeller
parent cb4fa3795a
commit 80e7819d6f
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public abstract class Comparators {
* @see NullSafeComparator#NullSafeComparator(boolean)
*/
public static <T> Comparator<T> nullsLow(Comparator<T> comparator) {
return new NullSafeComparator<>(comparator, false);
return new NullSafeComparator<>(comparator, true);
}
/**