public ObjectLoader open(AnyObjectId objectId, int typeHint)throws MissingObjectException, IncorrectObjectTypeException,IOException {final ObjectLoader ldr = db.openObject(this, objectId);if (ldr == null) {if (typeHint == OBJ_ANY)throw new MissingObjectException(objectId.copy(),JGitText.get().unknownObjectType2);throw new MissingObjectException(objectId.copy(), typeHint);}if (typeHint != OBJ_ANY && ldr.getType() != typeHint)throw new IncorrectObjectTypeException(objectId.copy(), typeHint);return ldr;}

public ObjectLoader open ( AnyObjectId objectId , int typeHint ) throws MissingObjectException , IncorrectObjectTypeException , IOException { final ObjectLoader ldr = db . openObject ( this , objectId ) ; if ( ldr == null ) { if ( typeHint == OBJ_ANY ) throw new MissingObjectException ( objectId . copy ( ) , JGitText . get ( ) . unknownObjectType2 ) ; throw new MissingObjectException ( objectId . copy ( ) , typeHint ) ; } if ( typeHint != OBJ_ANY && ldr . getType ( ) != typeHint ) throw new IncorrectObjectTypeException ( objectId . copy ( ) , typeHint ) ; return ldr ; }
public override ObjectLoader Open(AnyObjectId objectId, int typeHint){ObjectLoader ldr = db.OpenObject(this, objectId);if (ldr == null){if (typeHint == OBJ_ANY){throw new MissingObjectException(objectId.Copy(), "unknown");}throw new MissingObjectException(objectId.Copy(), typeHint);}if (typeHint != OBJ_ANY && ldr.GetType() != typeHint){throw new IncorrectObjectTypeException(objectId.Copy(), typeHint);}return ldr;}
