aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2017-06-10 00:58:23 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2017-06-10 00:58:23 +0200
commit4acad15086bb03c3b75a2ed82a3b57e412dfd518 (patch)
tree9f6de51bfce67aed9b67cfad58fe3e06445a65de
parent9c7b95684c87eb82f6b8641188c2d51802dc7c34 (diff)
downloadjgit-4acad15086bb03c3b75a2ed82a3b57e412dfd518.tar.gz
jgit-4acad15086bb03c3b75a2ed82a3b57e412dfd518.zip
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 <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/SubmoduleUpdateCommand.java4
1 files changed, 3 insertions, 1 deletions
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;
}
}