From 22f7beaf2b554e497dcec3198272b528654d5547 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: I39cfbeba0171c66e0f03b7b3785313da55b1dcac --- .../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