-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace IndexFactory reflection. (#1431)
* Replacing use of reflection in IndexFactory with method references * IndexFactory used old reflection code that was unnecessarily brittle and may cause problems in java 11. Replaced it by using direct references to Index constructor methods instead of finding them with reflection. * Breaking changes: Removed public methods IndexType.getIndexCreator() and IndexType.getIndexType(). The first of these was broken and always resulted in an exception and the second is mostly useless and also unlikely to be missed. * Removed a public method which was broken and always resulted in an exception. * This doesn't attempt to fix any design issues in this class other than the bad reflection code.
- Loading branch information
1 parent
3f8ba35
commit f70befd
Showing
3 changed files
with
49 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters