Browse Source

Suppress API errors and add missing @since tags caused by 6ea888a

Change-Id: Id042d46ba078af35b9c22a079da4ae14fc5fa231
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.3
Matthias Sohn 6 years ago
parent
commit
7b989eed72
  1. 16
      org.eclipse.jgit/.settings/.api_filters
  2. 4
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdRef.java
  3. 1
      org.eclipse.jgit/src/org/eclipse/jgit/lib/SymbolicRef.java

16
org.eclipse.jgit/.settings/.api_filters

@ -38,6 +38,22 @@
</message_arguments> </message_arguments>
</filter> </filter>
</resource> </resource>
<resource path="src/org/eclipse/jgit/lib/ObjectIdRef.java" type="org.eclipse.jgit.lib.ObjectIdRef">
<filter comment="removing protected constructor breaks implementers which is ok in a minor release following OSGi semantic versioning" id="338722907">
<message_arguments>
<message_argument value="org.eclipse.jgit.lib.ObjectIdRef"/>
<message_argument value="ObjectIdRef(Ref.Storage, String, ObjectId)"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/lib/Ref.java" type="org.eclipse.jgit.lib.Ref">
<filter id="404000815">
<message_arguments>
<message_argument value="org.eclipse.jgit.lib.Ref"/>
<message_argument value="getUpdateIndex()"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/lib/RefDatabase.java" type="org.eclipse.jgit.lib.RefDatabase"> <resource path="src/org/eclipse/jgit/lib/RefDatabase.java" type="org.eclipse.jgit.lib.RefDatabase">
<filter comment="class is extended by extenders but not clients of the API" id="421650549"> <filter comment="class is extended by extenders but not clients of the API" id="421650549">
<message_arguments> <message_arguments>

4
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdRef.java

@ -82,6 +82,7 @@ public abstract class ObjectIdRef implements Ref {
* a ref that does not exist yet. * a ref that does not exist yet.
* @param updateIndex * @param updateIndex
* number increasing with each update to the reference. * number increasing with each update to the reference.
* @since 5.3
*/ */
public Unpeeled(@NonNull Storage st, @NonNull String name, public Unpeeled(@NonNull Storage st, @NonNull String name,
@Nullable ObjectId id, long updateIndex) { @Nullable ObjectId id, long updateIndex) {
@ -136,6 +137,7 @@ public abstract class ObjectIdRef implements Ref {
* the first non-tag object that tag {@code id} points to. * the first non-tag object that tag {@code id} points to.
* @param updateIndex * @param updateIndex
* number increasing with each update to the reference. * number increasing with each update to the reference.
* @since 5.3
*/ */
public PeeledTag(@NonNull Storage st, @NonNull String name, public PeeledTag(@NonNull Storage st, @NonNull String name,
@Nullable ObjectId id, @NonNull ObjectId p, long updateIndex) { @Nullable ObjectId id, @NonNull ObjectId p, long updateIndex) {
@ -185,6 +187,7 @@ public abstract class ObjectIdRef implements Ref {
* a ref that does not exist yet. * a ref that does not exist yet.
* @param updateIndex * @param updateIndex
* number increasing with each update to the reference. * number increasing with each update to the reference.
* @since 5.3
*/ */
public PeeledNonTag(@NonNull Storage st, @NonNull String name, public PeeledNonTag(@NonNull Storage st, @NonNull String name,
@Nullable ObjectId id, long updateIndex) { @Nullable ObjectId id, long updateIndex) {
@ -224,6 +227,7 @@ public abstract class ObjectIdRef implements Ref {
* @param updateIndex * @param updateIndex
* number that increases with each ref update. Set to -1 if the * number that increases with each ref update. Set to -1 if the
* storage doesn't support versioning. * storage doesn't support versioning.
* @since 5.3
*/ */
protected ObjectIdRef(@NonNull Storage st, @NonNull String name, protected ObjectIdRef(@NonNull Storage st, @NonNull String name,
@Nullable ObjectId id, long updateIndex) { @Nullable ObjectId id, long updateIndex) {

1
org.eclipse.jgit/src/org/eclipse/jgit/lib/SymbolicRef.java

@ -83,6 +83,7 @@ public class SymbolicRef implements Ref {
* the ref we reference and derive our value from. * the ref we reference and derive our value from.
* @param updateIndex * @param updateIndex
* index that increases with each update of the reference * index that increases with each update of the reference
* @since 5.3
*/ */
public SymbolicRef(@NonNull String refName, @NonNull Ref target, public SymbolicRef(@NonNull String refName, @NonNull Ref target,
long updateIndex) { long updateIndex) {

Loading…
Cancel
Save