Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the redundant DocIdSet#bits method #14292

Merged
merged 2 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ API Changes
* GITHUB#14289: The unused public static DocIdSet#all method has been deprecated.
(Luca Cavanna)

* GITHUB#14292: The redundant DocIdSet#bits method has been deprecated. (Luca Cavanna)

New Features
---------------------

Expand Down
2 changes: 2 additions & 0 deletions lucene/core/src/java/org/apache/lucene/search/DocIdSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public long ramBytesUsed() {
* IOException}). This is generally true for bit sets like {@link
* org.apache.lucene.util.FixedBitSet}, which return itself if they are used as {@code
* DocIdSet}.
* @deprecated this method is redundant and will be removed.
*/
@Deprecated
public Bits bits() throws IOException {
return null;
}
Expand Down