avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clueless Joe (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1961) [JAVA] Generate getters that return an Optional
Date Mon, 28 Nov 2016 21:57:58 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15703263#comment-15703263

Clueless Joe commented on AVRO-1961:

Hi Niels

The changes I made are visible there https://github.com/apache/avro/pull/165. They do the
following: a getter for Foo foo returns Optionnal<Foo> when foo is nullable and gettersReturnOptionalOnNullableFields
is set to true.

Furthermore, I didn't find any way in the current tests to generate some pojos to make sure
they fit what I expect. How should I do this ?

What do you think of it ?

Best regards

> [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

View raw message