From 4acad15086bb03c3b75a2ed82a3b57e412dfd518 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Sat, 10 Jun 2017 00:58:23 +0200 Subject: SubmoduleUpdateCommand#setCallback should return 'this' The other methods in this class follow the builder pattern, and return 'this', allowing multiple method calls to be chained in a single statement. Update the setCallback method to do the same. Change-Id: I4ddaacd6d50601f47f61eb6be8b62c8d59cce062 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java index 34bfbe75b1..4d3dff02cd 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java @@ -240,9 +240,11 @@ public class SubmoduleUpdateCommand extends * * @param callback * the callback + * @return {@code this} * @since 4.8 */ - public void setCallback(CloneCommand.Callback callback) { + public SubmoduleUpdateCommand setCallback(CloneCommand.Callback callback) { this.callback = callback; + return this; } } -- cgit v1.2.3