From d301fcc0b41957de33fc71ae91febc2d918eb85a Mon Sep 17 00:00:00 2001 From: Akshay Rai Date: Wed, 1 Jul 2026 11:01:24 +0530 Subject: [PATCH] Fix duplicate JsonUtils() constructor causing build failure Two parallel PRs (#1038 'Checkstyle class-design cleanup' and #1040 'Centralize ObjectMapper construction via JsonUtils.newObjectMapper()') each independently added a private no-arg constructor to JsonUtils, merging into master with two definitions of the same constructor. This broke compilation of datastream-common with: error: constructor JsonUtils() is already defined in class JsonUtils Removed the duplicate, keeping the field declarations before the single remaining private constructor. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../main/java/com/linkedin/datastream/common/JsonUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/datastream-common/src/main/java/com/linkedin/datastream/common/JsonUtils.java b/datastream-common/src/main/java/com/linkedin/datastream/common/JsonUtils.java index d73c4f5ea..5d54fef8e 100644 --- a/datastream-common/src/main/java/com/linkedin/datastream/common/JsonUtils.java +++ b/datastream-common/src/main/java/com/linkedin/datastream/common/JsonUtils.java @@ -33,9 +33,6 @@ */ public final class JsonUtils { - private JsonUtils() { - } - private static final Logger LOG = LoggerFactory.getLogger(JsonUtils.class.getName()); private static final ObjectMapper MAPPER = newObjectMapper();