Merge pull request #67 from grimreaper/eax/no-dead-map-impl

[FixedOrderComparator] Simplify always false condition. ivar is final and initialized to a non-null value.
This commit is contained in:
Gary Gregory 2019-02-09 14:36:31 -05:00 committed by GitHub
commit a5347ebe43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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