From 8302377d913ccd344318ea3996e7106469ae4940 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 20 Sep 2023 22:23:16 +0200 Subject: [errorprone] Rename method parameter to silence InvalidParam See https://errorprone.info/bugpattern/InvalidParam Change-Id: I53279bc5e0fc59788d42994be9931857b918414b --- org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java | 6 +++--- org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java index 3c772c2765..0713c38931 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java @@ -491,13 +491,13 @@ public class FetchCommand extends TransportCommand { * * Default setting is Transport.DEFAULT_FETCH_THIN * - * @param thin + * @param thinPack * the thin-pack preference * @return {@code this} */ - public FetchCommand setThin(boolean thin) { + public FetchCommand setThin(boolean thinPack) { checkCallable(); - this.thin = thin; + this.thin = thinPack; return this; } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java index 2ed1c52fd7..e9d1a3213b 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java @@ -614,13 +614,13 @@ public class PushCommand extends * * Default setting is Transport.DEFAULT_PUSH_THIN * - * @param thin + * @param thinPack * the thin-pack preference value * @return {@code this} */ - public PushCommand setThin(boolean thin) { + public PushCommand setThin(boolean thinPack) { checkCallable(); - this.thin = thin; + this.thin = thinPack; return this; } -- cgit v1.2.3