GitHub user cluelessjoe opened a pull request:
https://github.com/apache/avro/pull/169
Branch 1.8 - AVRO-1961 : add isUnion and isNullable on Schema class
isUnion is needed since the class UnionSchema is private hence not
accessible from outside code
isNullable is needed for doing nullable schema's specific actions in
templates
both methods add value whatever the outcome of AVRO-1961
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cluelessjoe/avro branch-1.8
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/avro/pull/169.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #169
----
commit f912a42ecc7dc2ac305212c23af08b99ab355afc
Author: Joseph Pachod <[email protected]>
Date: 2016-12-07T21:53:13Z
AVRO-1961: Java: add isUnion and isNullable on Schema class
commit 185291033a915e8221f6e2e6f55809256d68082b
Author: Joseph Pachod <[email protected]>
Date: 2016-12-07T22:14:03Z
format and clarify pre existing tests
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---