You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method `get<MemberName>OrEmpty()` for collections, either lists or
maps, was supposed to return an empty collection when the collection
was not set, instead of null, but somehow we missed to add this
expected behavior. This change fixes this, if the collection was not
set we return either `Collections.emptyList()` or
`Collections.emptyMap()` depending on the collection type instead of
`null`. The user can still find whether the value was set by using the
`Optional<...> get<MemberName>()` variant that returns en empty
optional when the collection was not set.
0 commit comments