瀏覽代碼

reftable: clarify that LogCursor may return a null ReflogEntry

Change-Id: I1a4d5c262cd196dca37876aec00bb974a45e9fcd
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
tags/v5.6.1.202002131546-r
Han-Wen Nienhuys 4 年之前
父節點
當前提交
0bf2564433
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java

+ 3
- 1
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java 查看文件

@@ -45,6 +45,7 @@ package org.eclipse.jgit.internal.storage.reftable;

import java.io.IOException;

import org.eclipse.jgit.annotations.Nullable;
import org.eclipse.jgit.lib.ReflogEntry;

/**
@@ -78,8 +79,9 @@ public abstract class LogCursor implements AutoCloseable {
/**
* Get current log entry.
*
* @return current log entry.
* @return current log entry. Maybe null if we are producing deletions.
*/
@Nullable
public abstract ReflogEntry getReflogEntry();

/** {@inheritDoc} */

Loading…
取消
儲存