jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r464837 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/entry/UUIDReference.java
Date Tue, 17 Oct 2006 06:57:05 GMT
Author: angela
Date: Mon Oct 16 23:57:05 2006
New Revision: 464837

URL: http://svn.apache.org/viewvc?view=rev&rev=464837
Log:
work in progress

UUIDReference: Cannot be built from NodeId that contains a path.

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

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/entry/UUIDReference.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/entry/UUIDReference.java?view=diff&rev=464837&r1=464836&r2=464837
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/entry/UUIDReference.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/entry/UUIDReference.java
Mon Oct 16 23:57:05 2006
@@ -50,7 +50,7 @@
     UUIDReference(NodeState parent, NodeId childId, ItemStateFactory isf, QName name) {
         super(parent, name, isf);
         if (childId.getPath() != null) {
-            throw new IllegalArgumentException("childId must not contain a relative path");
+            throw new IllegalArgumentException("Cannot build UUIDReference from childId '"
+ childId + "' containing a path.");
         }
         this.childId = childId;
     }
@@ -67,8 +67,8 @@
     UUIDReference(NodeState child, ItemStateFactory isf) {
         super(child, isf);
         this.childId = child.getNodeId();
-        if (childId.getPath() == null) {
-            throw new IllegalArgumentException("id of child must not contain a relative path");
+        if (childId.getPath() != null) {
+            throw new IllegalArgumentException("Cannot build UUIDReference from childId '"
+ childId + "' containing a path.");
         }
     }
 



Mime
View raw message