Browse Source

Correct @since in RevWalk for the --first-parent methods

Fixes PDE API checks complaining: the methods were added
in JGit 5.5.0.

Change-Id: I9ff860c3408c6bb3891fa0da7547394d0fe9d0b6
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
stable-5.5
Thomas Wolf 5 years ago
parent
commit
758124fa9c
  1. 8
      org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java

8
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java

@ -664,7 +664,8 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
/**
* @return whether only first-parent links should be followed when walking.
* @since 5.4
*
* @since 5.5
*/
public boolean isFirstParent() {
return firstParent;
@ -679,7 +680,8 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
*
* @param enable
* true to walk only first-parent links.
* @since 5.4
*
* @since 5.5
*/
public void setFirstParent(boolean enable) {
assertNotStarted();
@ -1456,6 +1458,8 @@ public class RevWalk implements Iterable<RevCommit>, AutoCloseable {
* <p>
* If {@link #markStart(RevCommit)} has already been called,
* {@link #reset()} can be called to satisfy this condition.
*
* @since 5.5
*/
protected void assertNoCommitsMarkedStart() {
if (roots.isEmpty())

Loading…
Cancel
Save