summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2012-03-20 07:45:12 -0700
committerDave Borowitz <dborowitz@google.com>2012-05-14 11:52:48 -0700
commit37307af6b4e5a9b28518d94f8db6c279361995b3 (patch)
treedebc177d4def450e2bb418b679a43ee6098d7fe9
parentcc37cb777e57f6a5a8e0068945d322ac0f6834e2 (diff)
downloadjgit-37307af6b4e5a9b28518d94f8db6c279361995b3.tar.gz
jgit-37307af6b4e5a9b28518d94f8db6c279361995b3.zip
Enable call chaining on LsRemoteCommand methods
Change-Id: I706332386415892d7a964b241442832ad79fa223
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java
index 6bfd224de0..947b3f5929 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/LsRemoteCommand.java
@@ -106,27 +106,33 @@ public class LsRemoteCommand extends
* Include refs/heads in references results
*
* @param heads
+ * @return {@code this}
*/
- public void setHeads(boolean heads) {
+ public LsRemoteCommand setHeads(boolean heads) {
this.heads = heads;
+ return this;
}
/**
* Include refs/tags in references results
*
* @param tags
+ * @return {@code this}
*/
- public void setTags(boolean tags) {
+ public LsRemoteCommand setTags(boolean tags) {
this.tags = tags;
+ return this;
}
/**
* The full path of git-upload-pack on the remote host
*
* @param uploadPack
+ * @return {@code this}
*/
- public void setUploadPack(String uploadPack) {
+ public LsRemoteCommand setUploadPack(String uploadPack) {
this.uploadPack = uploadPack;
+ return this;
}
/**
@@ -193,4 +199,4 @@ public class LsRemoteCommand extends
}
}
-} \ No newline at end of file
+}