AVRO-4147: Mention ServiceLoader in SchemaFormatter javadoc#3389
Conversation
nandorKollar
left a comment
There was a problem hiding this comment.
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)