From 2c8e2a990777ddfe9edc832ad997f63dfb890521 Mon Sep 17 00:00:00 2001 From: "antonio.torre" Date: Thu, 14 Dec 2023 17:03:09 +0100 Subject: [PATCH] logging drools rules deleted by command --- .../common/reactive/mongo/ReactiveMongoRepositoryImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/it/gov/pagopa/common/reactive/mongo/ReactiveMongoRepositoryImpl.java b/src/main/java/it/gov/pagopa/common/reactive/mongo/ReactiveMongoRepositoryImpl.java index 8604d985..d9a56ee4 100644 --- a/src/main/java/it/gov/pagopa/common/reactive/mongo/ReactiveMongoRepositoryImpl.java +++ b/src/main/java/it/gov/pagopa/common/reactive/mongo/ReactiveMongoRepositoryImpl.java @@ -40,10 +40,13 @@ public Mono removeById(I id) { return mongoOperations .remove(getIdQuery(id), entityInformation.getJavaType(), entityInformation.getCollectionName()); } + + @SuppressWarnings("squid:S2177") // suppressing overriding private super method private Query getIdQuery(Object id) { return new Query(getIdCriteria(id)); } + @SuppressWarnings("squid:S2177") // suppressing overriding private super method private Criteria getIdCriteria(Object id) { return where(entityInformation.getIdAttribute()).is(id); }