sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tma...@apache.org
Subject svn commit: r1781573 - /sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java
Date Fri, 03 Feb 2017 15:49:43 GMT
Author: tmaret
Date: Fri Feb  3 15:49:43 2017
New Revision: 1781573

URL: http://svn.apache.org/viewvc?rev=1781573&view=rev
Log:
SLING-6503 - Concurrency issue can prevent repository packages to be cleaned up

* Provide default Iterator#remove implementation in ResourceDistributionPackageIterator to
compile with Java 7

Modified:
    sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java

Modified: sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java?rev=1781573&r1=1781572&r2=1781573&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java
(original)
+++ sling/trunk/contrib/extensions/distribution/core/src/main/java/org/apache/sling/distribution/packaging/impl/ResourceDistributionPackageBuilder.java
Fri Feb  3 15:49:43 2017
@@ -273,5 +273,10 @@ public class ResourceDistributionPackage
             Resource packageResource = packages.next();
             return new ResourceDistributionPackage(packageResource, type, resourceResolver,
null, null);
         }
+
+        @Override
+        public void remove() {
+            throw new UnsupportedOperationException("remove");
+        }
     }
 }



Mime
View raw message