jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r523231 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
Date Wed, 28 Mar 2007 08:50:02 GMT
Author: angela
Date: Wed Mar 28 01:50:01 2007
New Revision: 523231

URL: http://svn.apache.org/viewvc?view=rev&rev=523231
Log:
improve log output (status names instead of int)

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java?view=diff&rev=523231&r1=523230&r2=523231
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/ItemState.java
Wed Mar 28 01:50:01 2007
@@ -221,12 +221,12 @@
         }
 
         if (Status.isTerminal(oldStatus)) {
-            throw new IllegalStateException("State is already in terminal status " + oldStatus);
+            throw new IllegalStateException("State is already in terminal status " + Status.getName(oldStatus));
         }
         if (Status.isValidStatusChange(oldStatus, newStatus, isWorkspaceState)) {
             status = newStatus;
         } else {
-            throw new IllegalArgumentException("Invalid new status " + newStatus + " for
state with status " + oldStatus);
+            throw new IllegalArgumentException("Invalid new status " + Status.getName(newStatus)
+ " for state with status " + Status.getName(oldStatus));
         }
         // notifiy listeners about status change
         // copy listeners to array to avoid ConcurrentModificationException



Mime
View raw message