[FixedOrderComparator] Simplify always false condition
map is a final value initialized to an object and can never be null.
This commit is contained in:
parent
05939ff547
commit
896334a1e3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue