Remove unnecessary constructor to align with other AutoConfigurations#46239
Remove unnecessary constructor to align with other AutoConfigurations#46239quaff wants to merge 1 commit into
Conversation
Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
|
Those are actually intentional and we plan to adopt them more widely (but we're not ready to do that yet so please don't submit a PR :) ) The idea is that the class is public so that it can be excluded, but the constructor is package private to stop folks using or extending them directly because we consider auto-configuration classes to not be public API. |
|
@philwebb Is it possible to generate package private constructor by annotation processor? |
|
I think we'd rather just keep it simple and add them manually. |
|
I thought we'd decided on making them final rather than adding package-private constructors, hence the update to the title of #32883. |
|
I can't remember where we landed. Using |
No description provided.