From 242cc3347f082b0592a8d404bf2ec264f738ca41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Thu, 3 Sep 2026 18:03:40 -0400 Subject: [PATCH] docs: fix 8 typos in comments and documentation --- .../com/jfrog/ide/common/ci/CiManagerBase.java | 6 +++--- .../com/jfrog/ide/common/npm/NpmTreeBuilder.java | 2 +- .../jfrog/ide/common/utils/PackageFileFinder.java | 14 +++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/jfrog/ide/common/ci/CiManagerBase.java b/src/main/java/com/jfrog/ide/common/ci/CiManagerBase.java index 77a45795..c401eaa3 100644 --- a/src/main/java/com/jfrog/ide/common/ci/CiManagerBase.java +++ b/src/main/java/com/jfrog/ide/common/ci/CiManagerBase.java @@ -62,12 +62,12 @@ public CiManagerBase(Path cachePath, String projectName, Log log, ServerConfig s /** * Build the CI tree in a producer-consumer method. - * The producer download build-info artifacts from artifactory, save them in cache and produce the build + * The producer downloads build-info artifacts from Artifactory, saves them in cache and produces the build * general info to the consumer. - * The consumer download build scan results from Xray, save them in cache and populate the CI tree with nodes + * The consumer downloads build scan results from Xray, saves them in cache and populates the CI tree with nodes * containing only the build general info of the builds. *

- * When the produce-consumer job is done, the CI tree contains only general information on the builds. + * When the producer-consumer job is done, the CI tree contains only general information on the builds. * The build dependencies, artifacts and Xray scan results is stored in cache to save RAM. * * @param buildsPattern - The build pattern configured in the IDE configuration diff --git a/src/main/java/com/jfrog/ide/common/npm/NpmTreeBuilder.java b/src/main/java/com/jfrog/ide/common/npm/NpmTreeBuilder.java index 99274158..e288d3d7 100644 --- a/src/main/java/com/jfrog/ide/common/npm/NpmTreeBuilder.java +++ b/src/main/java/com/jfrog/ide/common/npm/NpmTreeBuilder.java @@ -62,7 +62,7 @@ public DepTree buildTree(Log logger) throws IOException { } JsonNode prodResults = npmList(Lists.newArrayList("--prod", "--package-lock-only")); if (prodResults.get("problems") != null) { - logger.warn("Errors occurred during building the Npm dependency tree. " + + logger.warn("Errors occurred while building the Npm dependency tree. " + "The dependency tree may be incomplete:\n" + prodResults.get("problems").toString()); } JsonNode devResults = npmList(Lists.newArrayList("--dev", "--package-lock-only")); 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 84dd6640..d64820a7 100644 --- a/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java +++ b/src/main/java/com/jfrog/ide/common/utils/PackageFileFinder.java @@ -48,7 +48,7 @@ public PackageFileFinder(Set projectPaths, Path basePath, String excludedP } /** - * Get package.json directories and their directories. + * Get package.json files and their parent directories. * * @return Set of package.json's parent directories. */ @@ -60,7 +60,7 @@ public Set getNpmPackagesFilePairs() { } /** - * Get package.json directories and their directories. + * Get yarn.lock files and their parent directories. * * @return Set of yarn.lock's parent directories. */ @@ -69,7 +69,7 @@ public Set getYarnPackagesFilePairs() { } /** - * Get build.gradle and build.gradle.kts directories and their directories. + * Get build.gradle and build.gradle.kts files and their parent directories. * * @return Set of build.gradle and build.gradle.kts's parent directories. */ @@ -78,7 +78,7 @@ public Set getBuildGradlePackagesFilePairs() { } /** - * Get go.mod directories and their directories. + * Get go.mod files and their parent directories. * * @return Set of go.mod's parent directories. */ @@ -100,7 +100,7 @@ Set getExcludedDirectories() { * * @param dir - Current directory. * @param attrs - Directory attributes. - * @return FileVisitResult.CONTINUE or FileVisitResult.SKIP_SUBTREE respectfully. + * @return FileVisitResult.CONTINUE or FileVisitResult.SKIP_SUBTREE respectively. */ @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { @@ -140,11 +140,11 @@ public FileVisitResult visitFileFailed(Path file, IOException exc) { } /** - * Skip sub directories without permissions + * Skip subdirectories without permissions * * @param dir - Current directory. * @param exc - IOException or null. - * @return FileVisitResult.CONTINUE or FileVisitResult.SKIP_SUBTREE respectfully. + * @return FileVisitResult.CONTINUE or FileVisitResult.SKIP_SUBTREE respectively. */ @Override public FileVisitResult postVisitDirectory(Path dir, IOException exc) {