From 36a8c2106983d9070a2c67961f7945db76403776 Mon Sep 17 00:00:00 2001 From: Mincong HUANG Date: Wed, 30 May 2018 22:24:24 +0200 Subject: [PATCH] Chain RemoteAddCommand methods Change-Id: I1cf64c90a5cd2220034810b0d65d59582b420c4e Signed-off-by: Mincong Huang Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/api/RemoteAddCommand.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java index c43c5c6f9..a8fdcd29f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/api/RemoteAddCommand.java @@ -86,9 +86,12 @@ public class RemoteAddCommand extends GitCommand { * * @param name * a remote name + * @return this instance + * @since 5.0 */ - public void setName(String name) { + public RemoteAddCommand setName(String name) { this.name = name; + return this; } /** @@ -96,9 +99,12 @@ public class RemoteAddCommand extends GitCommand { * * @param uri * an URL for the remote + * @return this instance + * @since 5.0 */ - public void setUri(URIish uri) { + public RemoteAddCommand setUri(URIish uri) { this.uri = uri; + return this; } /**