From 0bf25644339ecd150645e85becc9012d724ba6fb Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 29 Jan 2020 18:55:43 +0100 Subject: [PATCH] reftable: clarify that LogCursor may return a null ReflogEntry Change-Id: I1a4d5c262cd196dca37876aec00bb974a45e9fcd Signed-off-by: Han-Wen Nienhuys --- .../org/eclipse/jgit/internal/storage/reftable/LogCursor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java index 486fd28984..5c98242f10 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java +++ b/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} */ -- 2.39.5