diff --git a/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java b/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java index 2fbfa1ba..84dd6640 100644 --- a/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java +++ b/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java @@ -36,7 +36,7 @@ public PackageFileFinder(Set projectPaths, Path basePath, String excludedP this.exclusions = FileSystems.getDefault().getPathMatcher("glob:" + excludedPaths); this.basePath = basePath; - for (Path projectPath : Utils.consolidatePaths(projectPaths)) { + for (Path projectPath : projectPaths) { Files.walkFileTree(projectPath, this); } if (!excludedDirectories.isEmpty()) { @@ -50,7 +50,7 @@ public PackageFileFinder(Set projectPaths, Path basePath, String excludedP /** * Get package.json directories and their directories. * - * @return List of package.json's parent directories. + * @return Set of package.json's parent directories. */ public Set getNpmPackagesFilePairs() { Set packageJsonDirectoriesSet = Sets.newHashSet(packageJsonDirectories); @@ -62,7 +62,7 @@ public Set getNpmPackagesFilePairs() { /** * Get package.json directories and their directories. * - * @return List of yarn.lock's parent directories. + * @return Set of yarn.lock's parent directories. */ public Set getYarnPackagesFilePairs() { return Sets.newHashSet(yarnLockDirectories); @@ -71,7 +71,7 @@ public Set getYarnPackagesFilePairs() { /** * Get build.gradle and build.gradle.kts directories and their directories. * - * @return List of build.gradle and build.gradle.kts's parent directories. + * @return Set of build.gradle and build.gradle.kts's parent directories. */ public Set getBuildGradlePackagesFilePairs() { return Sets.newHashSet(buildGradleDirectories); @@ -80,7 +80,7 @@ public Set getBuildGradlePackagesFilePairs() { /** * Get go.mod directories and their directories. * - * @return List of go.mod's parent directories. + * @return Set of go.mod's parent directories. */ public Set getGoPackagesFilePairs() { return Sets.newHashSet(goModDirectories);