[
https://issues.apache.org/jira/browse/AVRO-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15708244#comment-15708244
]
Gabor Szadovszky commented on AVRO-1961:
----------------------------------------
Hi All,
Thanks a lot for this issue. I really like using the new features of java8.
I don't think it is that urgent to create setters for Optional. Optionals are
more used for getting values and not for setting. However, having setters for
both seems reasonable.
I don't really like the two different flags for having separate getters for
Optionals and returning Optionals by the original getters. I think, one flag
for having Optionals returned by the original getters or keeping the actual
behaviour is enough and less confusing. I don't think we really need both
getters in the same time. This way, the default behaviour can also be switched
easier in later major releases.
What do you think?
> [JAVA] Generate getters that return an Optional
> -----------------------------------------------
>
> Key: AVRO-1961
> URL: https://issues.apache.org/jira/browse/AVRO-1961
> Project: Avro
> Issue Type: New Feature
> Reporter: Niels Basjes
> Assignee: Niels Basjes
> Priority: Minor
>
> A colleague of mine indicated that having getters that return an Optional
> (java 8 thingy) would be very useful for him.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)