Skip to content

Apache Lucene open-source search software

Minor javadoc clarification that HasIndexSlice::getSlice can return null (#15581)

Chris Hegarty0ef4d975d005
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index fee7424c103..71a53a7b764 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -200,6 +200,9 @@ API Changes
* GITHUB#15569: Allow a DataAccessHint to be passed during the construction of Lucene99FlatVectorsReader
(Chris Hegarty)
+* GITHUB#15581: Minor javadoc clarification that HasIndexSlice::getSlice can return null
+ (Chris Hegarty)
+
New Features
---------------------
* GITHUB#15328: VectorSimilarityFunction.getValues() now implements doubleVal allowing its
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene95/HasIndexSlice.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene95/HasIndexSlice.java
index 2bfe72386a0..7e1d3ace2d9 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene95/HasIndexSlice.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene95/HasIndexSlice.java
@@ -24,6 +24,6 @@ import org.apache.lucene.store.IndexInput;
*/
public interface HasIndexSlice {
- /** Returns an IndexInput from which to read this instance's values. */
+ /** Returns an IndexInput from which to read this instance's values, or null if not available. */
IndexInput getSlice();
}