summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-20 22:23:16 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 16:15:35 +0200
commit8302377d913ccd344318ea3996e7106469ae4940 (patch)
tree730b7e1d4dfced85f6f3fb94e128c6b781176585
parente6c808600d1069d0dd968e5b94533c5f29443d09 (diff)
downloadjgit-8302377d913ccd344318ea3996e7106469ae4940.tar.gz
jgit-8302377d913ccd344318ea3996e7106469ae4940.zip
[errorprone] Rename method parameter to silence InvalidParam
See https://errorprone.info/bugpattern/InvalidParam Change-Id: I53279bc5e0fc59788d42994be9931857b918414b
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/FetchCommand.java6
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/PushCommand.java6
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<FetchCommand, FetchResult> {
*
* 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;
}