jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1214265 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java
Date Wed, 14 Dec 2011 14:41:28 GMT
Author: reschke
Date: Wed Dec 14 14:41:27 2011
New Revision: 1214265

URL: http://svn.apache.org/viewvc?rev=1214265&view=rev
Log:
JCR-3177: Remove jdk 1.4 restriction for jcr-tests

Reduce warning noise on retention tests

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java?rev=1214265&r1=1214264&r2=1214265&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/retention/HoldTest.java
Wed Dec 14 14:41:27 2011
@@ -253,7 +253,7 @@ public class HoldTest extends AbstractRe
     public void testAddHoldOnLockedNode() throws NotExecutableException, RepositoryException
{
         Node child = getLockedChildNode();
         // remember current holds for clean up.
-        List holdsBefore = Arrays.asList(retentionMgr.getHolds(child.getPath()));
+        List<Hold> holdsBefore = Arrays.asList(retentionMgr.getHolds(child.getPath()));
 
         // get another session.
         javax.jcr.Session otherS = getHelper().getSuperuserSession();
@@ -269,9 +269,9 @@ public class HoldTest extends AbstractRe
             otherS.logout();
 
             // clear holds (in case of test failure)
-            List holds = new ArrayList(Arrays.asList(retentionMgr.getHolds(child.getPath())));
+            List<Hold> holds = new ArrayList<Hold>(Arrays.asList(retentionMgr.getHolds(child.getPath())));
             if (holds.removeAll(holdsBefore)) {
-                for (Iterator it = holds.iterator(); it.hasNext();) {
+                for (Iterator<Hold> it = holds.iterator(); it.hasNext();) {
                     retentionMgr.removeHold(child.getPath(), (Hold) it.next());
                 }
             }



Mime
View raw message