You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by an...@apache.org on 2009/06/10 20:39:37 UTC
svn commit: r783444 -
/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
Author: angela
Date: Wed Jun 10 18:39:36 2009
New Revision: 783444
URL: http://svn.apache.org/viewvc?rev=783444&view=rev
Log:
JCR-1104: JSR 283 support
- remove redundant casts now that 283 api is present
Modified:
jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java?rev=783444&r1=783443&r2=783444&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java Wed Jun 10 18:39:36 2009
@@ -104,7 +104,7 @@
removeNode.lock(true, true);
Session testSession = null;
try {
- testSession = (Session) helper.getReadWriteSession();
+ testSession = helper.getReadWriteSession();
// removal of the locked node is a alteration of the parent, which
// isn't locked -> must succeed.
testSession.removeItem(nPath);
@@ -137,7 +137,7 @@
Session testSession = null;
try {
- testSession = (Session) helper.getReadWriteSession();
+ testSession = helper.getReadWriteSession();
try {
testSession.removeItem(childN.getPath());
testSession.save();