StatusCommand#setWorkingTreeIt should return 'this'
All setters for JGit API commands return the command instance, follow the builder pattern. Change-Id: Id2bbc3f1300bb179887c4d2d6dd72925bde55f24 Signed-off-by: Kevin Sawicki <kevin@github.com>
This commit is contained in:
parent
7fded4d14f
commit
9f66137716
|
@ -95,8 +95,11 @@ public Status call() throws IOException, NoWorkTreeException {
|
||||||
* method is not called a standard {@link FileTreeIterator} is used.
|
* method is not called a standard {@link FileTreeIterator} is used.
|
||||||
*
|
*
|
||||||
* @param workingTreeIt
|
* @param workingTreeIt
|
||||||
|
* a working tree iterator
|
||||||
|
* @return {@code this}
|
||||||
*/
|
*/
|
||||||
public void setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {
|
public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {
|
||||||
this.workingTreeIt = workingTreeIt;
|
this.workingTreeIt = workingTreeIt;
|
||||||
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue