ResConfigFlags: optimized equals() and hashCode() implementations.

This commit is contained in:
Ryszard Wiśniewski 2010-08-30 15:15:46 +02:00
parent 31e987fa12
commit 26f39d622a

View File

@ -274,16 +274,13 @@ public class ResConfigFlags {
return false;
}
final ResConfigFlags other = (ResConfigFlags) obj;
if ((this.mQualifiers == null) ? (other.mQualifiers != null) : !this.mQualifiers.equals(other.mQualifiers)) {
return false;
}
return true;
return this.mQualifiers.equals(other.mQualifiers);
}
@Override
public int hashCode() {
int hash = 3;
hash = 97 * hash + (this.mQualifiers != null ? this.mQualifiers.hashCode() : 0);
hash = 97 * hash + this.mQualifiers.hashCode();
return hash;
}