[ 
https://issues.apache.org/jira/browse/OAK-5160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15693441#comment-15693441
 ] 

Chetan Mehrotra commented on OAK-5160:
--------------------------------------

FWIW I came across {{DiffObserver}} which is meant for this purpose i.e. 
provide consistent access to before and after. 

> change Nonnull to Nullable in FilteringAwareObserver.contentChanged
> -------------------------------------------------------------------
>
>                 Key: OAK-5160
>                 URL: https://issues.apache.org/jira/browse/OAK-5160
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.14
>            Reporter: Stefan Egli
>            Assignee: Stefan Egli
>             Fix For: 1.6, 1.5.15
>
>
> FilteringAwareObserver (and thus ChangeProcessor)'s {{contentChanged}} has 
> {{@Nonnull}} for the {{before}} parameter. But for the very first 
> contentChanged (at initialization time) this can actually be null. So we 
> should change that to {{@Nullable}} there.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to