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); }