String writeField = entry.getKey();
// Remove the entry from rwSet if both field and object ID are the same
if (writeMap.containsKey(writeField) &&
- (writeMap.get(writeField) == recordedWriteMap.get(writeField))) {
+ (writeMap.get(writeField).equals(recordedWriteMap.get(writeField)))) {
writeMap.remove(writeField);
}
}
String readField = entry.getKey();
// Remove the entry from rwSet if both field and object ID are the same
if (readMap.containsKey(readField) &&
- (readMap.get(readField) == recordedReadMap.get(readField))) {
+ (readMap.get(readField).equals(recordedReadMap.get(readField)))) {
readMap.remove(readField);
}
}