Mike Roberts created AVRO-2639:
----------------------------------

             Summary: SpecificCompiler option to generate Optionals only when 
nullable
                 Key: AVRO-2639
                 URL: https://issues.apache.org/jira/browse/AVRO-2639
             Project: Apache Avro
          Issue Type: New Feature
          Components: java
    Affects Versions: 1.9.1
            Reporter: Mike Roberts


When `gettersReturnOptional` all getters return `Optional`, not just the 
getters for nullable fields.

It would be nice to add a configuration option 
(`gettersReturnOptionalOnlyForNullable`?) that made `SpecificCompiler` do this. 
It would make the Java code more accurately reflect the underlying schema.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to