]> source.dussan.org Git - jgit.git/commitdiff
SubmoduleWalk#forPath: Clarify that caller must close returned instance 73/140573/5
authorDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 14 Apr 2019 23:19:43 +0000 (08:19 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 28 Apr 2019 22:40:46 +0000 (00:40 +0200)
Change-Id: I25e7913a78c23c030a8c568975ee1044a9973517
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/submodule/SubmoduleWalk.java

index ce8995ad8f1e4706f37c316f4f93a096302a07ad..e5559dea09713dbf8984016e5e8d28830a1e4ec8 100644 (file)
@@ -144,7 +144,8 @@ public class SubmoduleWalk implements AutoCloseable {
         *            path and .gitmodules at the root.
         * @param path
         *            a {@link java.lang.String} object.
-        * @return generator at given path, null if no submodule at given path
+        * @return generator at given path. The caller is responsible for calling
+        *         {@link #close()}. Null if no submodule at given path.
         * @throws java.io.IOException
         */
        public static SubmoduleWalk forPath(Repository repository,
@@ -177,7 +178,8 @@ public class SubmoduleWalk implements AutoCloseable {
         *            path and .gitmodules at the root.
         * @param path
         *            a {@link java.lang.String} object.
-        * @return generator at given path, null if no submodule at given path
+        * @return generator at given path. The caller is responsible for calling
+        *         {@link #close()}. Null if no submodule at given path.
         * @throws java.io.IOException
         */
        public static SubmoduleWalk forPath(Repository repository,