Skip to content

Apache Lucene open-source search software

Correct some of the jdk17-offending javadocs.

Dawid Weissbaceb1690442
diff --git a/lucene/core/src/java/org/apache/lucene/document/FeatureField.java b/lucene/core/src/java/org/apache/lucene/document/FeatureField.java
index 22e6d9d397b..27e68964459 100644
--- a/lucene/core/src/java/org/apache/lucene/document/FeatureField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/FeatureField.java
@@ -642,10 +642,8 @@ public final class FeatureField extends Field {
* <p>This sort orders documents by descending value of a feature. The value returned in {@link
* FieldDoc} for the hits contains a Float instance with the feature value.
*
- * <p>If a document is missing the field, then it is treated as having a vaue of <code>0.0f</code>
- * .
- *
- * <p>
+ * <p>If a document is missing the field, then it is treated as having a value of <code>0.0f
+ * </code>.
*
* @param field field name. Must not be null.
* @param featureName feature name. Must not be null.
diff --git a/lucene/core/src/java/org/apache/lucene/document/XYPointField.java b/lucene/core/src/java/org/apache/lucene/document/XYPointField.java
index 6ba2773ac6c..f806bc43413 100644
--- a/lucene/core/src/java/org/apache/lucene/document/XYPointField.java
+++ b/lucene/core/src/java/org/apache/lucene/document/XYPointField.java
@@ -148,8 +148,6 @@ public class XYPointField extends Field {
/**
* Create a query for matching a bounding box.
*
- * <p>
- *
* @param field field name. must not be null.
* @param minX x lower bound.
* @param maxX x upper bound.
diff --git a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
index de0234be908..79e985c9204 100644
--- a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
+++ b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
@@ -57,8 +57,6 @@ public abstract class TermsEnum implements BytesRefIterator {
* the enum is unpositioned. For some codecs, seekExact may be substantially faster than {@link
* #seekCeil}.
*
- * <p>
- *
* @return true if the term is found; return false if the enum is unpositioned.
*/
public abstract boolean seekExact(BytesRef text) throws IOException;
diff --git a/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java b/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java
index cfde6b3cc9a..ac7377d4c12 100644
--- a/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java
+++ b/lucene/core/src/java/org/apache/lucene/search/DocIdSetIterator.java
@@ -148,8 +148,6 @@ public abstract class DocIdSetIterator {
* <li>Otherwise it should return the doc ID it is currently on.
* </ul>
*
- * <p>
- *
* @since 2.9
*/
public abstract int docID();
@@ -189,8 +187,6 @@ public abstract class DocIdSetIterator {
* Scorers. If your implementation cannot efficiently determine that it should exhaust, it is
* recommended that you check for that value in each call to this method.
*
- * <p>
- *
* @since 2.9
*/
public abstract int advance(int target) throws IOException;
diff --git a/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java b/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java
index fc1f2ad3b6c..6012c051ceb 100644
--- a/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java
+++ b/lucene/core/src/java/org/apache/lucene/util/QueryBuilder.java
@@ -97,8 +97,6 @@ public class QueryBuilder {
/**
* Creates a boolean query from the query text.
*
- * <p>
- *
* @param field field name
* @param queryText text to be passed to the analyzer
* @param operator operator used for clauses between analyzer tokens.
@@ -128,8 +126,6 @@ public class QueryBuilder {
/**
* Creates a phrase query from the query text.
*
- * <p>
- *
* @param field field name
* @param queryText text to be passed to the analyzer
* @param phraseSlop number of other words permitted between words in query phrase
@@ -143,8 +139,6 @@ public class QueryBuilder {
/**
* Creates a minimum-should-match query from the query text.
*
- * <p>
- *
* @param field field name
* @param queryText text to be passed to the analyzer
* @param fraction of query terms {@code [0..1]} that should match