Browse Source

Improve Javadoc for typeHint parameter

Link to an example type constant.

Change-Id: I214ab834fa02901a38e6048a94a5224b30c5d93f
Signed-off-by: Robin Stocker <robin@nibor.org>
stable-3.3
Robin Stocker 11 years ago
parent
commit
04f19353fd
  1. 7
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java
  2. 18
      org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
  3. 7
      org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

7
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectDatabase.java

@ -156,9 +156,10 @@ public abstract class ObjectDatabase {
* @param objectId * @param objectId
* identity of the object to open. * identity of the object to open.
* @param typeHint * @param typeHint
* hint about the type of object being requested; * hint about the type of object being requested, e.g.
* {@link ObjectReader#OBJ_ANY} if the object type is not known, * {@link Constants#OBJ_BLOB}; {@link ObjectReader#OBJ_ANY} if
* or does not matter to the caller. * the object type is not known, or does not matter to the
* caller.
* @return a {@link ObjectLoader} for accessing the object. * @return a {@link ObjectLoader} for accessing the object.
* @throws MissingObjectException * @throws MissingObjectException
* the object does not exist. * the object does not exist.

18
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java

@ -194,9 +194,9 @@ public abstract class ObjectReader {
* @param objectId * @param objectId
* identity of the object to test for existence of. * identity of the object to test for existence of.
* @param typeHint * @param typeHint
* hint about the type of object being requested; * hint about the type of object being requested, e.g.
* {@link #OBJ_ANY} if the object type is not known, or does not * {@link Constants#OBJ_BLOB}; {@link #OBJ_ANY} if the object
* matter to the caller. * type is not known, or does not matter to the caller.
* @return true if the specified object is stored in this database. * @return true if the specified object is stored in this database.
* @throws IncorrectObjectTypeException * @throws IncorrectObjectTypeException
* typeHint was not OBJ_ANY, and the object's actual type does * typeHint was not OBJ_ANY, and the object's actual type does
@ -235,9 +235,9 @@ public abstract class ObjectReader {
* @param objectId * @param objectId
* identity of the object to open. * identity of the object to open.
* @param typeHint * @param typeHint
* hint about the type of object being requested; * hint about the type of object being requested, e.g.
* {@link #OBJ_ANY} if the object type is not known, or does not * {@link Constants#OBJ_BLOB}; {@link #OBJ_ANY} if the object
* matter to the caller. * type is not known, or does not matter to the caller.
* @return a {@link ObjectLoader} for accessing the object. * @return a {@link ObjectLoader} for accessing the object.
* @throws MissingObjectException * @throws MissingObjectException
* the object does not exist. * the object does not exist.
@ -323,9 +323,9 @@ public abstract class ObjectReader {
* @param objectId * @param objectId
* identity of the object to open. * identity of the object to open.
* @param typeHint * @param typeHint
* hint about the type of object being requested; * hint about the type of object being requested, e.g.
* {@link #OBJ_ANY} if the object type is not known, or does not * {@link Constants#OBJ_BLOB}; {@link #OBJ_ANY} if the object
* matter to the caller. * type is not known, or does not matter to the caller.
* @return size of object in bytes. * @return size of object in bytes.
* @throws MissingObjectException * @throws MissingObjectException
* the object does not exist. * the object does not exist.

7
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java

@ -257,9 +257,10 @@ public abstract class Repository {
* @param objectId * @param objectId
* identity of the object to open. * identity of the object to open.
* @param typeHint * @param typeHint
* hint about the type of object being requested; * hint about the type of object being requested, e.g.
* {@link ObjectReader#OBJ_ANY} if the object type is not known, * {@link Constants#OBJ_BLOB}; {@link ObjectReader#OBJ_ANY} if
* or does not matter to the caller. * the object type is not known, or does not matter to the
* caller.
* @return a {@link ObjectLoader} for accessing the object. * @return a {@link ObjectLoader} for accessing the object.
* @throws MissingObjectException * @throws MissingObjectException
* the object does not exist. * the object does not exist.

Loading…
Cancel
Save