sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [sling-slingfeature-maven-plugin] 03/14: Refactor start order handling
Date Fri, 27 Apr 2018 09:44:02 GMT
This is an automated email from the ASF dual-hosted git repository.

davidb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git

commit acde4efe4e8e54fb5407c543d12564eca9bcad7b
Author: Carsten Ziegeler <cziegeler@apache.org>
AuthorDate: Fri Jan 19 08:07:53 2018 +0100

    Refactor start order handling
---
 src/main/java/org/apache/sling/feature/maven/Preprocessor.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/feature/maven/Preprocessor.java b/src/main/java/org/apache/sling/feature/maven/Preprocessor.java
index f7c011d..1435e4b 100644
--- a/src/main/java/org/apache/sling/feature/maven/Preprocessor.java
+++ b/src/main/java/org/apache/sling/feature/maven/Preprocessor.java
@@ -23,7 +23,6 @@ import java.io.Reader;
 import java.io.StringReader;
 import java.util.ArrayList;
 import java.util.List;
-import java.util.Map;
 import java.util.stream.Collectors;
 
 import org.apache.maven.model.Dependency;
@@ -296,8 +295,8 @@ public class Preprocessor {
             final ProjectInfo info,
             final Feature assembledFeature,
             final String scope) {
-        for(final Map.Entry<Integer, org.apache.sling.feature.Artifact> entry : assembledFeature.getBundles().getAllBundles())
{
-            final ArtifactId a = entry.getValue().getId();
+        for(final org.apache.sling.feature.Artifact entry : assembledFeature.getBundles())
{
+            final ArtifactId a = entry.getId();
             if ( a.getGroupId().equals(info.project.getGroupId())
                  && a.getArtifactId().equals(info.project.getArtifactId())
                  && a.getVersion().equals(info.project.getVersion()) ) {

-- 
To stop receiving notification emails like this one, please contact
davidb@apache.org.

Mime
View raw message