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


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.

Reply via email to