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

angela commented on OAK-2712:
-----------------------------

I refactored the SessionOperation#perform such that the default method is 
annotated as with {{@Nonnull}} while at the same time introducing 2 new methods 
for operations that may return {{null}} and those that don't expect any return 
value. Fixing this required broader changes than just to {{ItemImpl}} but now 
all {{SessionOperation}} calls should be fine and no longer violating the 
nullable-contract.
Committed revision 1673387.


> Possible null-dereference when calling ItemImpl#perform
> -------------------------------------------------------
>
>                 Key: OAK-2712
>                 URL: https://issues.apache.org/jira/browse/OAK-2712
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: angela
>              Labels: technical_debt
>             Fix For: 1.3.0
>
>
> FindBugs complains about usages of ItemImpl#perform that is annotated with 
> {{@CheckForNull}} but callers expecting a non-null return value.... most 
> prominently in NodeImpl



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

Reply via email to