]> source.dussan.org Git - jgit.git/commitdiff
Document CloneCommand.setURI(null) 76/49976/2
authorJonathan Nieder <jrn@google.com>
Wed, 10 Jun 2015 22:11:39 +0000 (15:11 -0700)
committerJonathan Nieder <jrn@google.com>
Thu, 11 Jun 2015 18:45:00 +0000 (11:45 -0700)
call() throws InvalidRemoteException if uri == null, so there should
never be reason to leave the URI set to null.  Document this.

Change-Id: I7f2cdbe8042d99cf8a3c1a8c4c2dcb58c5b8c305
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java

index 2b800e6c9ae853151016e9f830d540f3bca6dce6..5ea8398741f119db80897632cac62519aa6ac35c 100644 (file)
@@ -331,7 +331,8 @@ public class CloneCommand extends TransportCommand<CloneCommand, Git> {
 
        /**
         * @param uri
-        *            the uri to clone from
+        *            the URI to clone from, or {@code null} to unset the URI.
+        *            The URI must be set before {@link #call} is called.
         * @return this instance
         */
        public CloneCommand setURI(String uri) {