From 1e92426c5a9a764bc4907273fb2a287ff3ce229c Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Tue, 19 Sep 2023 15:58:28 +0200 Subject: [errorprone] Fix invalid param in javadoc See https://errorprone.info/bugpattern/InvalidParam Change-Id: Ife74575bb4080c3386affbfbaf9373931d72c3f3 --- .../eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java | 2 +- .../jgit/internal/storage/reftable/ReftableDatabase.java | 15 +++++++++------ .../src/org/eclipse/jgit/lib/RefDatabase.java | 2 +- .../src/org/eclipse/jgit/revwalk/ReachabilityChecker.java | 4 ++-- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java index faeafceec0..7d0391d846 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsObjDatabase.java @@ -370,7 +370,7 @@ public abstract class DfsObjDatabase extends ObjectDatabase { * Default implementation of this method would be equivalent to * {@code newPack(source).setEstimatedPackSize(estimatedPackSize)}. But the * clients can override this method to use the given - * {@code estomatedPackSize} value more efficiently in the process of + * {@code estimatedPackSize} value more efficiently in the process of * creating a new * {@link org.eclipse.jgit.internal.storage.dfs.DfsPackDescription} object. * diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableDatabase.java index 0c16828617..2b98348602 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableDatabase.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableDatabase.java @@ -268,14 +268,17 @@ public abstract class ReftableDatabase { } /** - * Returns refs whose names start with a given prefix excluding all refs that - * start with one of the given prefixes. + * Returns refs whose names start with a given prefix excluding all refs + * that start with one of the given prefixes. * - * @param include string that names of refs should start with; may be empty. - * @param excludes strings that names of refs can't start with; may be empty. + * @param include + * string that names of refs should start with; may be empty. + * @param excludes + * strings that names of refs can't start with; may be empty. * @return immutable list of refs whose names start with {@code include} and - * none of the strings in {@code exclude}. - * @throws java.io.IOException the reference space cannot be accessed. + * none of the strings in {@code excludes}. + * @throws java.io.IOException + * the reference space cannot be accessed. */ public List getRefsByPrefixWithExclusions(String include, Set excludes) throws IOException { if (excludes.isEmpty()) { diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java index 82dcc6b64c..9e05a39731 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java @@ -441,7 +441,7 @@ public abstract class RefDatabase { * @param excludes * strings that names of refs can't start with; may be empty. * @return immutable list of refs whose names start with {@code prefix} and - * none of the strings in {@code exclude}. + * none of the strings in {@code excludes}. * @throws java.io.IOException * the reference space cannot be accessed. * @since 5.11 diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java index d499084b42..1a869a0703 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ReachabilityChecker.java @@ -28,7 +28,7 @@ import org.eclipse.jgit.errors.MissingObjectException; public interface ReachabilityChecker { /** - * Check if all targets are reachable from the {@code starter} commits. + * Check if all targets are reachable from the {@code starters} commits. *

* Caller should parse the objectIds (preferably with * {@code walk.parseCommit()} and handle missing/incorrect type objects @@ -61,7 +61,7 @@ public interface ReachabilityChecker { } /** - * Check if all targets are reachable from the {@code starter} commits. + * Check if all targets are reachable from the {@code starters} commits. *

* Caller should parse the objectIds (preferably with * {@code walk.parseCommit()} and handle missing/incorrect type objects -- cgit v1.2.3