in src/main/java/com/jetbrains/jdi/LocationImpl.java [80:99]
public boolean equals(Object obj) {
if (this == obj) return true;
if (!(obj instanceof Location)) return false;
Location other = (Location) obj;
if (!declaringType().equals(other.declaringType())) {
return false;
}
// do not populate method if possible
if (other instanceof LocationImpl) {
if (methodRef != ((LocationImpl) other).methodRef) {
return false;
}
}
else {
if (!method().equals(other.method())) {
return false;
}
}
return codeIndex() == other.codeIndex() && super.equals(obj);
}