AbstractChangeNotes: mark readRef @Nullable
Change-Id: I37f156cda6fcc01e042811a714b24eef0aac39db
This commit is contained in:
@@ -153,6 +153,7 @@ public abstract class AbstractChangeNotes<T> {
|
||||
return self();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected ObjectId readRef(Repository repo) throws IOException {
|
||||
Ref ref = repo.getRefDatabase().exactRef(getRefName());
|
||||
return ref != null ? ref.getObjectId() : null;
|
||||
|
||||
Reference in New Issue
Block a user