Bug 828654, Bug 840127 - Android service for submitting Firefox Health Report payloads. r=rnewman
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user