-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Polish #13963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polish #13963
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the PR. I am not sure about one item, can you please have a look?
@@ -412,8 +412,8 @@ public void process(AnnotationMetadata annotationMetadata, | |||
DeferredImportSelector deferredImportSelector) { | |||
Assert.state( | |||
deferredImportSelector instanceof AutoConfigurationImportSelector, | |||
String.format( | |||
"AutoConfigurationImportSelector only supports %s implementations, got %s", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't a typo but a conscious decision. AutoConfigurationGroup
is an internal concept while the one in the exception is the public concept.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snicoll Thanks for the clarification! When I saw it, "AutoConfigurationImportSelector only supports AutoConfigurationImportSelector implementations" sounds a bit weird and it's in AutoConfigurationGroup.process()
, so I was trying to change it to AutoConfigurationGroup
which sounds more natural but noticed that the class is private
scope as you mentioned. I wasn't sure with this change at that time but with your comment, it'd be better to be reverted for now. I'll revert it soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snicoll I reverted it and force-pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got a valid point in any case. I'll reword that exception message
* pr/13963: Polish contribution Polish
This PR fixes some typos and polishes trivial stuff.