This is an automated email from the ASF dual-hosted git repository. vy pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
commit a0d39a89bdd599c94651c6ba085dc7f3ac7ccc12 Author: Volkan Yazıcı <[email protected]> AuthorDate: Wed Mar 13 14:07:32 2024 +0100 Fix processing order in `PluginSets` --- .../main/java/org/apache/logging/log4j/docgen/maven/PluginSets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PluginSets.java b/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PluginSets.java index f54f964..5ee869d 100644 --- a/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PluginSets.java +++ b/log4j-docgen-maven-plugin/src/main/java/org/apache/logging/log4j/docgen/maven/PluginSets.java @@ -41,7 +41,7 @@ final class PluginSets { } // Collect paths - final Set<Path> foundDescriptorPaths = new LinkedHashSet<>(); + final Set<Path> foundDescriptorPaths = /* order matters: */ new LinkedHashSet<>(); Arrays.stream(effectiveDescriptorFiles).map(File::toPath).forEach(foundDescriptorPaths::add); Arrays.stream(effectiveDescriptorFileMatchers).forEach(matcher -> matcher.findPaths(foundDescriptorPaths::add)); @@ -56,6 +56,6 @@ final class PluginSets { throw new RuntimeException(message, error); } }) - .collect(Collectors.toSet()); + .collect(Collectors.toCollection(/* order matters: */ LinkedHashSet::new)); } }
