summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2013-04-27 14:18:59 +0200
committerRobin Stocker <robin@nibor.org>2013-04-27 14:18:59 +0200
commit664d738c9fe8fffaecf6cd7ba3a88a5b76b03b6a (patch)
tree023835141b45d051373166a6da02e2b679006796
parent37f0e324b5e82f55371ef8adc195d35f7a196c58 (diff)
downloadjgit-664d738c9fe8fffaecf6cd7ba3a88a5b76b03b6a.tar.gz
jgit-664d738c9fe8fffaecf6cd7ba3a88a5b76b03b6a.zip
Refer to getEntryPathLength in docs of getEntryPathBuffer
Change-Id: Icca41d80bd0791cd2d4bf03297795d161afbee70
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
index 4cf79c0a27..2dd3c3aa14 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/treewalk/AbstractTreeIterator.java
@@ -425,7 +425,14 @@ public abstract class AbstractTreeIterator {
return TreeWalk.pathOf(this);
}
- /** @return the internal buffer holding the current path. */
+ /**
+ * Get the current entry path buffer.
+ * <p>
+ * Note that the returned byte[] has to be used together with
+ * {@link #getEntryPathLength()} (only use bytes up to this length).
+ *
+ * @return the internal buffer holding the current path.
+ */
public byte[] getEntryPathBuffer() {
return path;
}