jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r537122 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
Date Fri, 11 May 2007 07:09:06 GMT
Author: jukka
Date: Fri May 11 00:09:05 2007
New Revision: 537122

URL: http://svn.apache.org/viewvc?view=rev&rev=537122
Log:
JCR-911: Remove sanityCheck() from ItemImpl.getSession()

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java?view=diff&rev=537122&r1=537121&r2=537122
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ItemImpl.java
Fri May 11 00:09:05 2007
@@ -1396,12 +1396,15 @@
     }
 
     /**
-     * {@inheritDoc}
+     * Returns the session associated with this item.
+     * <p>
+     * Since Jackrabbit 1.4 it is safe to use this method regardless
+     * of item state.
+     *
+     * @see http://issues.apache.org/jira/browse/JCR-911
+     * @return current session
      */
-    public Session getSession() throws RepositoryException {
-        // check state of this instance
-        sanityCheck();
-
+    public Session getSession() {
         return session;
     }
 



Mime
View raw message