maven-release icon indicating copy to clipboard operation
maven-release copied to clipboard

Document deprecations

Open elharo opened this issue 1 year ago • 4 comments

New feature, improvement proposal

A number of methods in this project are deprecated without any docs explaining why they're deprecated or how to replace them. e.g. getWorkItem and setWorkItem in ScmProviderRepository

Document or undeprecate these.

elharo avatar Nov 28 '25 13:11 elharo

Hi @elharo,

I’ve set up the project locally and verified that the build succeeds. I reviewed deprecated methods such as getWorkItem and setWorkItem in ScmProviderRepository and confirmed they lack Javadoc explaining the reason for deprecation or suggested replacements.

Before proceeding, could you please confirm whether the preferred approach is to document these deprecations, or to consider undeprecating any of them?

Thanks.

anukalp2804 avatar Dec 13 '25 12:12 anukalp2804

It's case by case. It depends completely on whether each one should be deprecated and whether it's still needed or not.

elharo avatar Dec 13 '25 13:12 elharo

Thanks for the clarification.

I’ll go through the deprecated methods one by one and evaluate whether each should remain deprecated or be undeprecated, and document them accordingly. I’ll open a PR once I have concrete changes.

Thanks.

anukalp2804 avatar Dec 13 '25 13:12 anukalp2804

This can be multiple PRs, one for each group of related deprecations.

elharo avatar Dec 13 '25 13:12 elharo