jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r791255 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Date Sun, 05 Jul 2009 14:36:16 GMT
Author: mreutegg
Date: Sun Jul  5 14:36:15 2009
New Revision: 791255

URL: http://svn.apache.org/viewvc?rev=791255&view=rev
Log:
JCR-2186: Unnecessary hasItemState() call in SessionItemStateManager

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java?rev=791255&r1=791254&r2=791255&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Sun Jul  5 14:36:15 2009
@@ -177,12 +177,7 @@
             return getTransientItemState(id);
         }
 
-        // check if there's persistent state for the specified item
-        if (stateMgr.hasItemState(id)) {
-            return stateMgr.getItemState(id);
-        }
-
-        throw new NoSuchItemStateException(id.toString());
+        return stateMgr.getItemState(id);
     }
 
     /**



Mime
View raw message