Skip to content

Apache Lucene open-source search software

javadoc: fix confusing terminology

Robert Muir528a4b806afb
diff --git a/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java b/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
index 4055d3531d2..7b93fdd3d1f 100644
--- a/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
+++ b/lucene/src/java/org/apache/lucene/util/automaton/fst/Builder.java
@@ -219,7 +219,7 @@ public class Builder<T> {
add(scratchIntsRef, output);
}
- /** Sugar: adds the UTF32 chars from char[] slice. FST
+ /** Sugar: adds the UTF32 codepoints from char[] slice. FST
* must be FST.INPUT_TYPE.BYTE4! */
public void add(char[] s, int offset, int length, T output) throws IOException {
assert fst.getInputType() == FST.INPUT_TYPE.BYTE4;
@@ -237,7 +237,7 @@ public class Builder<T> {
add(scratchIntsRef, output);
}
- /** Sugar: adds the UTF32 chars from CharSequence. FST
+ /** Sugar: adds the UTF32 codepoints from CharSequence. FST
* must be FST.INPUT_TYPE.BYTE4! */
public void add(CharSequence s, T output) throws IOException {
assert fst.getInputType() == FST.INPUT_TYPE.BYTE4;