From 0757ca6bfab80a20d3b832f66ed9a7b359d0d915 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 30 Aug 2024 16:38:55 +0200 Subject: [PATCH] Remove deprecated CheckoutCommand#setForce method Change-Id: Ie0b59ec21fc8dbe18242bbb52cb794e5a02c1ed5 --- .../org/eclipse/jgit/api/CheckoutCommand.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java index c133219d4d..32c242f271 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/CheckoutCommand.java @@ -641,24 +641,6 @@ public class CheckoutCommand extends GitCommand { return this; } - /** - * Specify to force the ref update in case of a branch switch. - * - * @param force - * if true and the branch with the given name - * already exists, the start-point of an existing branch will be - * set to a new start-point; if false, the existing branch will - * not be changed - * @return this instance - * @deprecated this method was badly named comparing its semantics to native - * git's checkout --force option, use - * {@link #setForceRefUpdate(boolean)} instead - */ - @Deprecated - public CheckoutCommand setForce(boolean force) { - return setForceRefUpdate(force); - } - /** * Specify to force the ref update in case of a branch switch. * -- 2.39.5