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; } /**