You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "anchela (via GitHub)" <gi...@apache.org> on 2023/02/21 07:45:15 UTC

[GitHub] [sling-org-apache-sling-feature-cpconverter] anchela commented on a diff in pull request #158: Sling 11777 2 - improve segmentprocessing

anchela commented on code in PR #158:
URL: https://github.com/apache/sling-org-apache-sling-feature-cpconverter/pull/158#discussion_r1112667194


##########
src/main/java/org/apache/sling/feature/cpconverter/ContentPackage2FeatureModelConverter.java:
##########
@@ -328,19 +337,23 @@ private void secondPass(@NotNull Collection<VaultPackage> orderedContentPackages
                     // finally serialize the Feature Model(s) file(s)
 
                     aclManager.addRepoinitExtension(assemblers, featuresManager);
-                    bundleSlingInitialContentExtractor.addRepoInitExtension(assemblers, featuresManager);
                     indexManager.addRepoinitExtension(featuresManager);
                     
                     logger.info("Conversion complete!");
-
+                    persistedAssemblerList.addAll(assemblers);
+                    
+                    //for the last feature, we add the repoinit extensions, because we got all the information
+                    if(!vaultPackageIterator.hasNext()){

Review Comment:
   missing spaces again.... please let the formatter of your IDE fix the formatting before you create a PR. your code adhere to the same coding style as the rest of the module.... the converter is a beast and i want to avoid having broken-window-syndrom because it looks ugly when everyone just does his/her thing.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org