bodewig commented on code in PR #4:
URL:
https://github.com/apache/ant-antlibs-cyclonedx/pull/4#discussion_r4812026279
##########
src/main/org/apache/ant/cyclonedx/IvyModuleComponentResolver.java:
##########
@@ -488,10 +503,32 @@ private boolean isSpecial(IvyNode node, Set<String>
specialConfigurations) {
if (specialConfigurations.isEmpty()) {
return false;
}
- Set<String> rootConfs = node.getRootModuleConfigurationsSet();
- Stream<String> includedBecauseOf = includeAllConfigurations ?
rootConfs.stream()
- : rootConfs.stream().filter(c ->
includedConfigurations.contains(c));
- return includedBecauseOf.allMatch(c ->
specialConfigurations.contains(c));
+ return node.getRootModuleConfigurationsSet().stream()
Review Comment:
would it make sense to reuse `getIncludedBecauseOf` you have just introduced?
##########
src/main/org/apache/ant/cyclonedx/IvyModuleComponentResolver.java:
##########
@@ -329,6 +329,11 @@ private void fillFromModuleDescriptor(Component component,
Set<IvyNode> dependencies = dependencyTree.get(mrid);
if (dependencies != null) {
for (IvyNode n : dependencies) {
+ if(isEvicted(n)) {
Review Comment:
minor nit, please add a space between `if` and the opening paren. The same
is true for line 513.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]