@@ -36,7 +36,7 @@ public PackageFileFinder(Set<Path> projectPaths, Path basePath, String excludedP
36
36
this .exclusions = FileSystems .getDefault ().getPathMatcher ("glob:" + excludedPaths );
37
37
this .basePath = basePath ;
38
38
39
- for (Path projectPath : Utils . consolidatePaths ( projectPaths ) ) {
39
+ for (Path projectPath : projectPaths ) {
40
40
Files .walkFileTree (projectPath , this );
41
41
}
42
42
if (!excludedDirectories .isEmpty ()) {
@@ -50,7 +50,7 @@ public PackageFileFinder(Set<Path> projectPaths, Path basePath, String excludedP
50
50
/**
51
51
* Get package.json directories and their directories.
52
52
*
53
- * @return List of package.json's parent directories.
53
+ * @return Set of package.json's parent directories.
54
54
*/
55
55
public Set <String > getNpmPackagesFilePairs () {
56
56
Set <String > packageJsonDirectoriesSet = Sets .newHashSet (packageJsonDirectories );
@@ -62,7 +62,7 @@ public Set<String> getNpmPackagesFilePairs() {
62
62
/**
63
63
* Get package.json directories and their directories.
64
64
*
65
- * @return List of yarn.lock's parent directories.
65
+ * @return Set of yarn.lock's parent directories.
66
66
*/
67
67
public Set <String > getYarnPackagesFilePairs () {
68
68
return Sets .newHashSet (yarnLockDirectories );
@@ -71,7 +71,7 @@ public Set<String> getYarnPackagesFilePairs() {
71
71
/**
72
72
* Get build.gradle and build.gradle.kts directories and their directories.
73
73
*
74
- * @return List of build.gradle and build.gradle.kts's parent directories.
74
+ * @return Set of build.gradle and build.gradle.kts's parent directories.
75
75
*/
76
76
public Set <String > getBuildGradlePackagesFilePairs () {
77
77
return Sets .newHashSet (buildGradleDirectories );
@@ -80,7 +80,7 @@ public Set<String> getBuildGradlePackagesFilePairs() {
80
80
/**
81
81
* Get go.mod directories and their directories.
82
82
*
83
- * @return List of go.mod's parent directories.
83
+ * @return Set of go.mod's parent directories.
84
84
*/
85
85
public Set <String > getGoPackagesFilePairs () {
86
86
return Sets .newHashSet (goModDirectories );
0 commit comments