From 2b359cbd88b5d5379831961509738a13f2109508 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Wed, 4 Mar 2026 12:27:46 +0100 Subject: [PATCH] Replace deprecated `setSerializationInclusion` with `setDefaultPropertyInclusion` in `JsonConf`. --- src/main/java/codes/thischwa/cf/JsonConf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/codes/thischwa/cf/JsonConf.java b/src/main/java/codes/thischwa/cf/JsonConf.java index e2e7a4a..c9ebbd7 100644 --- a/src/main/java/codes/thischwa/cf/JsonConf.java +++ b/src/main/java/codes/thischwa/cf/JsonConf.java @@ -18,7 +18,7 @@ class JsonConf { static ObjectMapper initObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new JavaTimeModule()); - mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + mapper.setDefaultPropertyInclusion(JsonInclude.Include.NON_NULL); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); mapper.setPropertyNamingStrategy(PropertyNamingStrategies.SNAKE_CASE); return mapper;