diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2016-03-07 20:11:59 -0500 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2016-03-07 20:12:00 -0500 |
commit | 6bcd8c6e90c18db3ccae288a20e80709bd99e4a8 (patch) | |
tree | 81b9a012b793734e3139a3b1239511f0ad5b5457 | |
parent | b811e4399ea578a07595bac790ad619b9fcb1300 (diff) | |
parent | 011e5da3e0727d9a2cdfb3261ef78e5067380eab (diff) | |
download | jgit-6bcd8c6e90c18db3ccae288a20e80709bd99e4a8.tar.gz jgit-6bcd8c6e90c18db3ccae288a20e80709bd99e4a8.zip |
Merge "Change visibility of DirCacheTree#getObjectId to public"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java index 0cbb83d6e2..8bcf4bf3e0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheTree.java @@ -249,7 +249,15 @@ public class DirCacheTree { return children[i]; } - ObjectId getObjectId() { + /** + * Get the tree's ObjectId. + * <p> + * If {@link #isValid()} returns false this method will return null. + * + * @return ObjectId of this tree or null. + * @since 4.3 + */ + public ObjectId getObjectId() { return id; } |