diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-19 15:58:28 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 16:15:33 +0200 |
commit | 1e92426c5a9a764bc4907273fb2a287ff3ce229c (patch) | |
tree | 2b39a266e10667003d92fd0a2d01503774661c9e | |
parent | e53c1864e6cd483c20f761b62e739b3071636767 (diff) | |
download | jgit-1e92426c5a9a764bc4907273fb2a287ff3ce229c.tar.gz jgit-1e92426c5a9a764bc4907273fb2a287ff3ce229c.zip |
[errorprone] Fix invalid param in javadoc
See https://errorprone.info/bugpattern/InvalidParam
Change-Id: Ife74575bb4080c3386affbfbaf9373931d72c3f3
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<Ref> getRefsByPrefixWithExclusions(String include, Set<String> 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. * <p> * 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. * <p> * Caller should parse the objectIds (preferably with * {@code walk.parseCommit()} and handle missing/incorrect type objects |