incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1522954 - /sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Date Fri, 13 Sep 2013 14:34:03 GMT
Author: bdelacretaz
Date: Fri Sep 13 14:34:03 2013
New Revision: 1522954

URL: http://svn.apache.org/r1522954
Log:
SLING-2788 - nitpicks

Modified:
    sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java

Modified: sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java?rev=1522954&r1=1522953&r2=1522954&view=diff
==============================================================================
--- sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
(original)
+++ sling/whiteboard/bdelacretaz/it-repository/src/test/java/org/apache/sling/jcr/repository/it/SlingRepositoryITBase.java
Fri Sep 13 14:34:03 2013
@@ -62,7 +62,7 @@ public abstract class SlingRepositoryITB
     
     private final List<String> toDelete = new LinkedList<String>();
     
-    private Item deleteAfterTests(Item it) throws RepositoryException {
+    private <ItemType extends Item> ItemType deleteAfterTests(ItemType it) throws RepositoryException
{
         toDelete.add(it.getPath());
         return it;
     }
@@ -231,7 +231,7 @@ public abstract class SlingRepositoryITB
         Session s = repository.loginAdministrative(null);
         try {
             final String path = getClass().getSimpleName() + System.currentTimeMillis();
-            final Node child = (Node)deleteAfterTests(s.getRootNode().addNode(path));
+            final Node child = deleteAfterTests(s.getRootNode().addNode(path));
             final Property p = child.setProperty("foo", new String[] { "bar", "wii " });
             s.save();
             try { 



Mime
View raw message