Skip to content

refactor: remove deprecated HealthCheckSettings constructors (since 1.1.0) - #869

Draft
He-Pin wants to merge 4 commits into
apache:mainfrom
He-Pin:remove/deprecated-healthcheck-settings
Draft

refactor: remove deprecated HealthCheckSettings constructors (since 1.1.0)#869
He-Pin wants to merge 4 commits into
apache:mainfrom
He-Pin:remove/deprecated-healthcheck-settings

Conversation

@He-Pin

@He-Pin He-Pin commented Jul 4, 2026

Copy link
Copy Markdown
Member

Motivation

The legacy HealthCheckSettings.create overload and secondary constructor without startupChecks/startupPath parameters were deprecated since 1.1.0.

Modification

Remove the deprecated create overload (5-arg version) and deprecated secondary constructor (5-arg version). Remove the corresponding test case for the legacy constructor.

Result

Cleaner API with only the full constructor available that includes startupChecks and startupPath.

Tests

Not run - trivial removal of deprecated overloads

References

None - deprecated API cleanup

….1.0)

Motivation:
The legacy HealthCheckSettings.create and secondary constructor without
startupChecks/startupPath parameters were deprecated since 1.1.0.

Modification:
Remove the deprecated create overload and secondary constructor.
Remove the corresponding test case.

Result:
Cleaner API with only the full constructor available.

Tests:
Not run - trivial removal of deprecated overloads

References:
None - deprecated API cleanup
@He-Pin
He-Pin marked this pull request as draft July 4, 2026 20:33
He-Pin added 3 commits July 5, 2026 06:23
Motivation:
The 5-arg HealthCheckSettings.create() overload was removed, but
the Java test creatableThroughLegacyConstructor still called it,
causing compilation failures.

Modification:
Remove the creatableThroughLegacyConstructor test method from
HealthCheckTest.java, matching the Scala test removal.

Result:
Build and Test and Integration test pass (the integration test
failure was cascading from the compilation error).
@He-Pin
He-Pin marked this pull request as ready for review July 5, 2026 04:25
@pjfanning

Copy link
Copy Markdown
Member

I, personally, prefer to keep deprecated methods around for a while and these were only deprecated recently.

@He-Pin
He-Pin marked this pull request as draft July 5, 2026 08:40
@He-Pin

He-Pin commented Jul 5, 2026

Copy link
Copy Markdown
Member Author

Let's keep it around for the next major release:)

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.

2 participants