jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r783321 - in /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core: observation/ShareableNodesTest.java query/ShareableNodeTest.java
Date Wed, 10 Jun 2009 12:39:36 GMT
Author: angela
Date: Wed Jun 10 12:39:36 2009
New Revision: 783321

URL: http://svn.apache.org/viewvc?rev=783321&view=rev
Log:
JCR-1104: JSR 283 support

- remove redundant casts now that 283 api is present

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/observation/ShareableNodesTest.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/ShareableNodeTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/observation/ShareableNodesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/observation/ShareableNodesTest.java?rev=783321&r1=783320&r2=783321&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/observation/ShareableNodesTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/observation/ShareableNodesTest.java
Wed Jun 10 12:39:36 2009
@@ -87,6 +87,6 @@
     }
 
     protected void removeFromSharedSet(Node node) throws RepositoryException {
-        ((NodeImpl) node).removeShare();
+        node.removeShare();
     }
 }

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/ShareableNodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/ShareableNodeTest.java?rev=783321&r1=783320&r2=783321&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/ShareableNodeTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/ShareableNodeTest.java
Wed Jun 10 12:39:36 2009
@@ -66,7 +66,7 @@
         assertTrue("wrong node", n4.isSame(nodes.nextNode()));
 
         // remove a node from the shared set
-        ((NodeImpl) s).removeShare();
+        s.removeShare();
         testRootNode.save();
 
         s = n2.getNode(nodeName3);
@@ -88,7 +88,7 @@
         assertTrue("wrong node", s.isSame(nodes.nextNode()));
 
         // remove remaining node from the shared set
-        ((NodeImpl) s).removeShare();
+        s.removeShare();
         testRootNode.save();
 
         stmt = testPath + "/" + nodeName1 + "/*[@" + propertyName1 + "='value']";
@@ -127,7 +127,7 @@
         assertTrue("wrong node", s.isSame(nodes.nextNode()));
 
         // remove a node from the shared set
-        ((NodeImpl) s).removeShare();
+        s.removeShare();
         testRootNode.save();
 
         s = n2.getNode(nodeName4);
@@ -143,7 +143,7 @@
         assertTrue("wrong node", s.isSame(nodes.nextNode()));
 
         // remove remaining node from the shared set
-        ((NodeImpl) s).removeShare();
+        s.removeShare();
         testRootNode.save();
 
         stmt = testPath + "//" + nodeName3;



Mime
View raw message