adjusted hashcode

This commit is contained in:
Connor Tumbleson 2012-09-13 14:06:14 -05:00
parent 5c7a82ab8d
commit 1e0a80f9a8
4 changed files with 10 additions and 10 deletions

View File

@ -356,8 +356,8 @@ public class ResConfigFlags {
@Override
public int hashCode() {
int hash = 3;
hash = 97 * hash + this.mQualifiers.hashCode();
int hash = 17;
hash = 31 * hash + this.mQualifiers.hashCode();
return hash;
}

View File

@ -48,8 +48,8 @@ public class ResID {
@Override
public int hashCode() {
int hash = 7;
hash = 59 * hash + this.id;
int hash = 17;
hash = 31 * hash + this.id;
return hash;
}

View File

@ -205,9 +205,9 @@ public class ResPackage {
@Override
public int hashCode() {
int hash = 7;
hash = 37 * hash + (this.mResTable != null ? this.mResTable.hashCode() : 0);
hash = 37 * hash + this.mId;
int hash = 17;
hash = 31 * hash + (this.mResTable != null ? this.mResTable.hashCode() : 0);
hash = 31 * hash + this.mId;
return hash;
}

View File

@ -82,9 +82,9 @@ public class ResValuesFile {
@Override
public int hashCode() {
int hash = 5;
hash = 37 * hash + (this.mType != null ? this.mType.hashCode() : 0);
hash = 37 * hash + (this.mConfig != null ? this.mConfig.hashCode() : 0);
int hash = 17;
hash = 31 * hash + (this.mType != null ? this.mType.hashCode() : 0);
hash = 31 * hash + (this.mConfig != null ? this.mConfig.hashCode() : 0);
return hash;
}
}