aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
index 001b18c4c8..e9afc5043e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
@@ -68,9 +68,9 @@ public abstract class ObjectReader {
* @throws IOException
* the object store cannot be accessed.
*/
- public boolean hasObject(AnyObjectId objectId) throws IOException {
+ public boolean has(AnyObjectId objectId) throws IOException {
try {
- openObject(objectId);
+ open(objectId);
return true;
} catch (MissingObjectException notFound) {
return false;
@@ -88,9 +88,9 @@ public abstract class ObjectReader {
* @throws IOException
* the object store cannot be accessed.
*/
- public ObjectLoader openObject(AnyObjectId objectId)
+ public ObjectLoader open(AnyObjectId objectId)
throws MissingObjectException, IOException {
- return openObject(objectId, OBJ_ANY);
+ return open(objectId, OBJ_ANY);
}
/**
@@ -111,7 +111,7 @@ public abstract class ObjectReader {
* @throws IOException
* the object store cannot be accessed.
*/
- public abstract ObjectLoader openObject(AnyObjectId objectId, int typeHint)
+ public abstract ObjectLoader open(AnyObjectId objectId, int typeHint)
throws MissingObjectException, IncorrectObjectTypeException,
IOException;