mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 01:37:34 +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;
|
return false;
|
||||||
}
|
}
|
||||||
final ResConfigFlags other = (ResConfigFlags) obj;
|
final ResConfigFlags other = (ResConfigFlags) obj;
|
||||||
if ((this.mQualifiers == null) ? (other.mQualifiers != null) : !this.mQualifiers.equals(other.mQualifiers)) {
|
return this.mQualifiers.equals(other.mQualifiers);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
int hash = 3;
|
int hash = 3;
|
||||||
hash = 97 * hash + (this.mQualifiers != null ? this.mQualifiers.hashCode() : 0);
|
hash = 97 * hash + this.mQualifiers.hashCode();
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user