Skip to content

Fix duplicate JsonUtils() constructor causing build failure#1041

Merged
akshayrai merged 1 commit into
linkedin:masterfrom
akshayrai:akrai/fix-jsonutils-duplicate-constructor
Jul 1, 2026
Merged

Fix duplicate JsonUtils() constructor causing build failure#1041
akshayrai merged 1 commit into
linkedin:masterfrom
akshayrai:akrai/fix-jsonutils-duplicate-constructor

Conversation

@akshayrai

Copy link
Copy Markdown
Collaborator

Summary

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.

Testing Done

PR checks

Two parallel PRs (linkedin#1038 'Checkstyle class-design cleanup' and linkedin#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>

@dhananjay-sawner dhananjay-sawner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akshayrai akshayrai merged commit 2affbc9 into linkedin:master Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants