MINOR: Fix Certification Comparisson (#19947)

* Used .equals() instead of ==

* fix comparison

---------

Co-authored-by: sonikashah <sonikashah94@gmail.com>
This commit is contained in:
IceS2 2025-02-25 14:04:13 +01:00 committed by GitHub
parent 037116cdc0
commit a0e91f3dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3244,7 +3244,8 @@ public abstract class EntityRepository<T extends EntityInterface> {
AssetCertification origCertification = original.getCertification();
AssetCertification updatedCertification = updated.getCertification();
if (origCertification == updatedCertification || updatedCertification == null) return;
if (Objects.equals(origCertification, updatedCertification) || updatedCertification == null)
return;
SystemRepository systemRepository = Entity.getSystemRepository();
AssetCertificationSettings assetCertificationSettings =