Artur Kalimullin created AVRO-2745:
--------------------------------------
Summary: Return optional through getters for nullable fields only
Key: AVRO-2745
URL: https://issues.apache.org/jira/browse/AVRO-2745
Project: Apache Avro
Issue Type: Improvement
Reporter: Artur Kalimullin
Currently gettersReturnOptional parameter makes getters always return Optional,
even when the field is not nullable. I think it would be better for the end
user to know from the code if the field really is optional or not and that's
the real use case of Optional in Java.
It can be done by either changing gettersReturnOptional behaviour or by adding
additional parameter that compliments the gettersReturnOptional. I think the
second option is better as it won't break users that are already using
gettersReturnOptional.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)