Skip to content

Commit

Permalink
[XMLBEANS-608] Memory leak in interface extension handling
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xmlbeans/trunk@1901295 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
pjfanning committed May 26, 2022
1 parent e684ff4 commit 23cdb93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private class FileVisitor extends SimpleFileVisitor<Path> {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (javaMatcher.matches(file)) {
if (roots.stream().noneMatch(file::startsWith)) {
if (roots.stream().map(Path::toAbsolutePath).noneMatch(file.toAbsolutePath()::startsWith)) {
getRoot(file).ifPresent(r -> {
getSolver().add(new JavaParserTypeSolver(r, getParserConfiguration()));
roots.add(r);
Expand Down

0 comments on commit 23cdb93

Please sign in to comment.