From 87267d73ea4069cc39e6bc66bd09b1c46fecae65 Mon Sep 17 00:00:00 2001 From: patelila Date: Mon, 13 May 2024 12:29:38 +0100 Subject: [PATCH] Using PropertyNamingStrategies.SnakeCaseStrategy because of c.f.j.d.PropertyNamingStrategy$SnakeCaseStrategy PropertyNamingStrategy.SnakeCaseStrategy is used but it has been deprecated due to risk of deadlock. Consider using PropertyNamingStrategies.SnakeCaseStrategy instead. See https://github.com/FasterXML/jackson-databind/issues/2715 for more details. --- .../hmcts/ccd/definition/store/repository/model/Category.java | 4 ++-- .../definition/store/repository/model/ChallengeQuestion.java | 4 ++-- .../store/repository/model/RoleToAccessProfiles.java | 4 ++-- .../ccd/definition/store/repository/model/SearchCriteria.java | 4 ++-- .../ccd/definition/store/repository/model/SearchParty.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/Category.java b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/Category.java index 431f9fcf26..170f9a4e99 100644 --- a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/Category.java +++ b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/Category.java @@ -1,12 +1,12 @@ package uk.gov.hmcts.ccd.definition.store.repository.model; -import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Data; import java.time.LocalDate; -@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @Data public class Category { diff --git a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/ChallengeQuestion.java b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/ChallengeQuestion.java index c2cd775e0d..8f11727627 100644 --- a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/ChallengeQuestion.java +++ b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/ChallengeQuestion.java @@ -1,10 +1,10 @@ package uk.gov.hmcts.ccd.definition.store.repository.model; -import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Data; -@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @Data public class ChallengeQuestion { diff --git a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/RoleToAccessProfiles.java b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/RoleToAccessProfiles.java index 83bb933cb0..9d804b1426 100644 --- a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/RoleToAccessProfiles.java +++ b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/RoleToAccessProfiles.java @@ -1,11 +1,11 @@ package uk.gov.hmcts.ccd.definition.store.repository.model; -import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import java.util.Date; import lombok.Data; -@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @Data public class RoleToAccessProfiles { diff --git a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchCriteria.java b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchCriteria.java index 817c1029bb..c3ce03a5bc 100644 --- a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchCriteria.java +++ b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchCriteria.java @@ -1,12 +1,12 @@ package uk.gov.hmcts.ccd.definition.store.repository.model; -import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Data; import java.util.Date; -@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @Data public class SearchCriteria { diff --git a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchParty.java b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchParty.java index d691154e60..a7c535a440 100644 --- a/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchParty.java +++ b/repository/src/main/java/uk/gov/hmcts/ccd/definition/store/repository/model/SearchParty.java @@ -1,12 +1,12 @@ package uk.gov.hmcts.ccd.definition.store.repository.model; -import com.fasterxml.jackson.databind.PropertyNamingStrategy; +import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.Data; import java.util.Date; -@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) +@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) @Data public class SearchParty {