jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r380082 - in /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state: SessionItemStateManager.java UpdatableItemStateManager.java
Date Thu, 23 Feb 2006 09:46:38 GMT
Author: angela
Date: Thu Feb 23 01:46:29 2006
New Revision: 380082

URL: http://svn.apache.org/viewcvs?rev=380082&view=rev
Log:
UpdatableItemStateManager#inEditMode: description of return value contradicts the IllegalStateException
throw clause.
since current implementations never throw IllegalStateException and all usages (BatchedItemOperation)
don't rely on the exception, adjusting method signature (Session-ism) and javadoc (updatable-ism).

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

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java?rev=380082&r1=380081&r2=380082&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/SessionItemStateManager.java
Thu Feb 23 01:46:29 2006
@@ -178,7 +178,7 @@
     /**
      * {@inheritDoc}
      */
-    public boolean inEditMode() throws IllegalStateException {
+    public boolean inEditMode() {
         return persistentStateMgr.inEditMode();
     }
 

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/UpdatableItemStateManager.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/UpdatableItemStateManager.java?rev=380082&r1=380081&r2=380082&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/UpdatableItemStateManager.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/state/UpdatableItemStateManager.java
Thu Feb 23 01:46:29 2006
@@ -44,7 +44,6 @@
      *
      * @return <code>true</code> if this manager is in edit mode, otherwise
      *         <code>false</code>
-     * @throws IllegalStateException if the manager is not in edit mode.
      */
     boolean inEditMode();
 



Mime
View raw message