Skip to content

Commit

Permalink
Add linked hashset
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdebruin committed Nov 1, 2024
1 parent ba048dc commit 7268f64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ private Stream<SourceFile> processTestSources(
javaParserBuilder.classpath(testDependencies).typeCache(typeCache);
kotlinParserBuilder.classpath(testDependencies).typeCache(new JavaTypeCache());

HashSet<Path> testJavaSources = new HashSet<>(listJavaSources(mavenProject.getBasedir().toPath().resolve(mavenProject.getBuild().getTestSourceDirectory())));
Set<Path> testJavaSources = new LinkedHashSet<>(listJavaSources(mavenProject.getBasedir().toPath().resolve(mavenProject.getBuild().getTestSourceDirectory())));
for (String p : mavenProject.getTestCompileSourceRoots()) {
testJavaSources.addAll(listJavaSources(mavenProject.getBasedir().toPath().resolve(p)));
}
Expand Down

0 comments on commit 7268f64

Please sign in to comment.