-
Notifications
You must be signed in to change notification settings - Fork 1.7k
AVRO-4147: Mention ServiceLoader in SchemaFormatter javadoc #3389
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
AVRO-4147: Mention ServiceLoader in SchemaFormatter javadoc #3389
Conversation
nandorKollar
left a comment
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.
LGTM, though it appears to me, that SchemaFormatterFactory is located via ServiceLoader, not the SchemaFormatter implementations. Nevertheless, eventually the factory is used to create the formatters, so it might worths mentioning service loading here too.
|
Thank you @nandorKollar ! The reason it didn't work, is because the class needed to be loaded using the context ClassLoader: neither my plugin nor Avro were available at application start, so the application ClassLoader could not find it. I'm not certain though, whether I should mention that explicitly or if a reference to the |
I think it makes sense briefly highlighting this scenario, that could clarify why |
|
@opwvhk one more thing: I think you should run |
|
🤦 spotless... |
What is the purpose of the change
Implement AVRO-4147 by updating the javadoc for the
SchemaFormatterinterfaceVerifying this change
This change is a trivial rework / code cleanup without any test coverage.
Documentation
yes/ no)not applicable/ docs /JavaDocs / not documented)