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

Remove incorrect/expensive use of ServiceLoader for choosing random format #13428

Merged
merged 1 commit into from
May 27, 2024

Conversation

uschindler
Copy link
Contributor

This cleans up the code:

  • Remove expensive usage of ServiceLoader which might be inconsistent with the NamedSPI code
  • Add a better readable version with comment about the special case regarding bit vectors

@uschindler
Copy link
Contributor Author

This also make the method static to be in conformance with other LuceneTestCase methods

Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@uschindler uschindler merged commit b1189ad into apache:main May 27, 2024
3 checks passed
@uschindler uschindler deleted the dev/removeServiceLoader branch May 27, 2024 21:59
asfgit pushed a commit that referenced this pull request May 27, 2024
…ormat (#13428)

# Conflicts:
#	lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java
@uschindler
Copy link
Contributor Author

Merged. I also removed the useless extra "uses" clause in test-frameworks module-info.java. Missed to do this here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants