Browse Source

Silence API error caused by changed return type of digest()

Change-Id: Ic0810ed7fea837c45cbc9a4649ca51d140bad6e6
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-4.7
Matthias Sohn 8 years ago
parent
commit
9d2a7de65e
  1. 8
      org.eclipse.jgit/.settings/.api_filters
  2. 5
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java

8
org.eclipse.jgit/.settings/.api_filters

@ -8,6 +8,14 @@
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/lib/ObjectInserter.java" type="org.eclipse.jgit.lib.ObjectInserter">
<filter comment="changed return type of digest() breaking implementors which is ok in minor releases according to OSGi semantic versioning" id="338792546">
<message_arguments>
<message_argument value="org.eclipse.jgit.lib.ObjectInserter"/>
<message_argument value="digest()"/>
</message_arguments>
</filter>
</resource>
<resource path="src/org/eclipse/jgit/transport/http/HttpConnection.java" type="org.eclipse.jgit.transport.http.HttpConnection">
<filter comment="OSGi semantic versioning rules allow to break implementors in minor releases" id="403767336">
<message_arguments>

5
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java

@ -217,7 +217,10 @@ public abstract class ObjectInserter implements AutoCloseable {
return b;
}
/** @return digest to help compute an ObjectId */
/**
* @return digest to help compute an ObjectId
* @since 4.7
*/
protected SHA1 digest() {
return hasher.reset();
}

Loading…
Cancel
Save