[FixedOrderComparator] Simplify always false condition

map is a final value initialized to an object and can never be null.
This commit is contained in:
Eitan Adler 2019-02-08 23:57:10 -08:00
parent 05939ff547
commit 896334a1e3
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ public class FixedOrderComparator<T> implements Comparator<T>, Serializable {
@Override
public int hashCode() {
int total = 17;
total = total*37 + (map == null ? 0 : map.hashCode());
total = total*37 + map.hashCode();
total = total*37 + (unknownObjectBehavior == null ? 0 : unknownObjectBehavior.hashCode());
total = total*37 + counter;
total = total*37 + (isLocked ? 0 : 1);