mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
ResConfigFlags: optimized equals() and hashCode() implementations.
This commit is contained in:
parent
31e987fa12
commit
26f39d622a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user