KyleSchoonover edited a comment on pull request #1569:
URL: https://github.com/apache/avro/pull/1569#issuecomment-1051381652
Just wanted to call this out to @martin-g and @zcsizmadia. Is there a
reason the ArraySchema class doesn't just use the following instead of the
private constructor and the static NewInstance method?
`internal ArraySchema(JToken jtok, PropertyMap props, SchemaNames names,
string encspace) : base(Type.Array, props)
{
}`
With the functionality of both put into this one constructor.
Also the addition of: `private ArraySchema(Schema items, PropertyMap props)
: base(Type.Array, props) {}` so that it can't be instantiated without using
the internal constructor.
I can put this in a separate PR, but just trying to understand if there was
some intention that I don't see.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]