Bug 828654, Bug 840127 - Android service for submitting Firefox Health Report payloads. r=rnewman

This commit is contained in:
Nick Alexander
2013-06-12 16:17:47 -07:00
parent 87b95adc72
commit 43acd6a612
27 changed files with 1349 additions and 66 deletions

View File

@@ -308,4 +308,27 @@ public class ExtendedJSONObject {
public int size() {
return this.object.size();
}
@Override
public int hashCode() {
if (this.object == null) {
return getClass().hashCode();
}
return this.object.hashCode() ^ getClass().hashCode();
}
@Override
public boolean equals(Object o) {
if (o == null || !(o instanceof ExtendedJSONObject)) {
return false;
}
if (o == this) {
return true;
}
ExtendedJSONObject other = (ExtendedJSONObject) o;
if (this.object == null) {
return other.object == null;
}
return this.object.equals(other.object);
}
}