]> source.dussan.org Git - jgit.git/commitdiff
reftable: clarify that LogCursor may return a null ReflogEntry 27/156827/3
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 29 Jan 2020 17:55:43 +0000 (18:55 +0100)
committerHan-Wen Nienhuys <hanwen@google.com>
Mon, 10 Feb 2020 11:43:36 +0000 (12:43 +0100)
Change-Id: I1a4d5c262cd196dca37876aec00bb974a45e9fcd
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/LogCursor.java

index 486fd2898462e8e8b1e9df6dfb1905d15e940756..5c98242f101374a041e4bf53e8f5d814203e8010 100644 (file)
@@ -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} */