[ https://issues.apache.org/jira/browse/JCR-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jukka Zitting updated JCR-2186: ------------------------------- Fix Version/s: (was: 2.0.0) 1.6.0 Merged to the 1.x branch in revision 791861. > Unnecessary hasItemState() call in SessionItemStateManager > ---------------------------------------------------------- > > Key: JCR-2186 > URL: https://issues.apache.org/jira/browse/JCR-2186 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: jackrabbit-core > Reporter: Marcel Reutegger > Priority: Minor > Fix For: 1.6.0 > > > At the end of SessionItemStateManager.getItemState(ItemId) the underlying > item state manager is first asked whether it contains the item and then it is > retrieved. In case the item state manager does not know the item a > NoSuchItemStateException is thrown. > The initial check is unnecessary because getItemState() on the underlying > manager will also throw the exception if the item does not exist. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.