Skip to content

Commit

Permalink
[MINOR] Update javadoc in Query class (#12233)
Browse files Browse the repository at this point in the history
- add a few missing full stops
- update wording in the description of Query#equals method
  • Loading branch information
AndreyBozhko authored May 23, 2023
1 parent 8a602b5 commit c9c49bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lucene/core/src/java/org/apache/lucene/search/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* </ul>
*
* <p>See also additional queries available in the <a
* href="{@docRoot}/../queries/overview-summary.html">Queries module</a>
* href="{@docRoot}/../queries/overview-summary.html">Queries module</a>.
*/
public abstract class Query {

Expand Down Expand Up @@ -86,7 +86,7 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
}

/**
* Recurse through the query tree, visiting any child queries
* Recurse through the query tree, visiting any child queries.
*
* @param visitor a QueryVisitor to be called by each query in the tree
*/
Expand All @@ -97,8 +97,8 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
* that {@link QueryCache} works properly.
*
* <p>Typically a query will be equal to another only if it's an instance of the same class and
* its document-filtering properties are identical that other instance. Utility methods are
* provided for certain repetitive code.
* its document-filtering properties are identical to those of the other instance. Utility methods
* are provided for certain repetitive code.
*
* @see #sameClassAs(Object)
* @see #classHash()
Expand All @@ -121,7 +121,7 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
*
* <p>When this method is used in an implementation of {@link #equals(Object)}, consider using
* {@link #classHash()} in the implementation of {@link #hashCode} to differentiate different
* class
* class.
*/
protected final boolean sameClassAs(Object other) {
return other != null && getClass() == other.getClass();
Expand Down

0 comments on commit c9c49bc

Please sign in to comment.