Add missing @Deprecated.forRemoval for removed in 7.0#36562
Add missing @Deprecated.forRemoval for removed in 7.0#36562seregamorph wants to merge 1 commit intospring-projects:6.2.xfrom
Conversation
|
Hello @seregamorph , happy to merge those changes but can you sign your commits first for the DCO? Thanks. |
79bbd16 to
3d21099
Compare
|
@bclozel I've updated my commit and force pushed it. Does it look correct now? |
|
@seregamorph I think your commit signature doesn’t align with your GitHub profile (I redacted your email in the message)
|
|
Well, I see what you mean. Will update in a sec. |
3d21099 to
703002e
Compare
|
🟢 |
|
@bclozel I see more cases. E.g. deprecated constructors of |
|
Yes please. If you don't have time you can point them to me and I'll take care of those |
703002e to
ae134ee
Compare
|
Updated |
|
Will now add one more case: |
Signed-off-by: seregamorph <serega.morph@gmail.com>
ae134ee to
4ed7abc
Compare
|
@bclozel I've created a simple code analysis tool to discover non-marked deprecated for deletion. So far there are more than 20 classes.
Maybe additionally default constructors that are not available to be called anymore (if there was only a default constructor) What do you think? I can submit such issues not only for spring-framework, but also other spring projects that I use (boot, data, hateoas, kafka, security) |
|
Thanks @seregamorph - please create a new issue for Spring Framework listing your findings and we'll review discrepancies one by one. Please hold off for now on other projects, I've asked project leads because I'm not sure the. "forRemoval" flag is consistently used in Spring projects. I'll close this PR for now then. |
|
@seregamorph I've asked other Spring projects leads and they would be happy to get issues similar to #36591. Please proceed, if you have time. Thanks a lot! |
|
Thanks. Will try to find time for this soon. |
We should distinguish just
@Deprecatedand these which are removed already in the spring-framework 7.0 to prioritize addressing these cases.Also, for our specific scenario, we have arch-unit test that checks all
@Deprecatedannotated classes/constructors/methods and prohibits its usage in the project and library code ifforRemoval=true(otherwise it's more lenient).