From 2417c9f0e4c863f5adae41b66744f955175487bc Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 12 Aug 2022 10:19:24 +0200 Subject: [PATCH] Fix API errors caused by 23a71696cd - add missing @since 6.3 for new protected field workTreeUpdater and new class WorkTreeUpdater - suppress API errors caused by removing/adding protected fields and methods We follow OSGi semantic versioning which allows breaking implementers in minor versions which are e.g. subclassing a public class. Change-Id: I28f0d7b4fdd9a1f0fbc6b137d6c68dda9fe3c11e --- org.eclipse.jgit/.settings/.api_filters | 38 +++++++++++++++++-- .../org/eclipse/jgit/merge/ResolveMerger.java | 2 + .../eclipse/jgit/util/WorkTreeUpdater.java | 7 +++- 3 files changed, 41 insertions(+), 6 deletions(-) diff --git a/org.eclipse.jgit/.settings/.api_filters b/org.eclipse.jgit/.settings/.api_filters index 1c283e7613..b517849555 100644 --- a/org.eclipse.jgit/.settings/.api_filters +++ b/org.eclipse.jgit/.settings/.api_filters @@ -24,22 +24,52 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java b/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java index 949ab5f449..ab82dd0c30 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/merge/ResolveMerger.java @@ -133,6 +133,8 @@ public class ResolveMerger extends ThreeWayMerger { /** * Handler for repository I/O actions. + * + * @since 6.3 */ protected WorkTreeUpdater workTreeUpdater; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java index f3531a6d1f..fb0b33a042 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/WorkTreeUpdater.java @@ -58,8 +58,11 @@ import org.eclipse.jgit.util.io.EolStreamTypeUtil; /** * Handles work tree updates on both the checkout and the index. *

- * You should use a single instance for all of your file changes. In case of an error, make sure - * your instance is released, and initiate a new one if necessary. + * You should use a single instance for all of your file changes. In case of an + * error, make sure your instance is released, and initiate a new one if + * necessary. + * + * @since 6.3 */ public class WorkTreeUpdater implements Closeable { -- 2.39.5