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:
parent
cb4fa3795a
commit
80e7819d6f
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue