jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r783444 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
Date Wed, 10 Jun 2009 18:39:37 GMT
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();



Mime
View raw message