use equals instead of ==

(cherry picked from commit a13cc82d40)
This commit is contained in:
Sascha Szott
2024-08-02 17:49:14 +02:00
committed by github-actions[bot]
parent 6a5236f2f9
commit 36ff5ca6cb

View File

@@ -213,7 +213,7 @@ public class ItemMetadataValueAddPatchOperation extends MetadataValueAddPatchOpe
private void updateRelationshipPlace(Context context, Item dso, int place, Relationship rs) {
try {
if (rs.getLeftItem() == dso) {
if (rs.getLeftItem().equals(dso)) {
rs.setLeftPlace(place);
} else {
rs.setRightPlace(place);