Working on next task:
+using switch statements for checking fields.
+Treating arrays the same as any field (inlinable)
}
@Override
- public boolean equals(Object obj) {
- return original.equals(obj);
+ public boolean equals(Object other) {
+ if(other == null || !(other instanceof ConcreteRuntimeObjNode))
+ return false;
+
+ return original.equals(((ConcreteRuntimeObjNode)other).original);
}
public int getAllocationSite() {
ObjRef other = objectRefs.get(objectRefs.indexOf(ref));
other.mergeWith(ref);
}
- else
+ else {
objectRefs.add(ref);
+ }
}
public boolean isObjectArray() {