Skip to content

Convert Hunspell Dictionary affix directive parsing else-if chain to …#16422

Open
rajat315315 wants to merge 1 commit into
apache:mainfrom
rajat315315:convert-if-else-to-switch
Open

Convert Hunspell Dictionary affix directive parsing else-if chain to …#16422
rajat315315 wants to merge 1 commit into
apache:mainfrom
rajat315315:convert-if-else-to-switch

Conversation

@rajat315315

@rajat315315 rajat315315 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Fixes: #16421

Description

Using a modern Java switch statement on firstWord simplifies this construct, improves code readability, and allows the Java compiler to produce a more efficient bytecode lookup scheme rather than sequential String.equals() comparisons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ENH: Convert Hunspell Dictionary affix directive parsing else-if chain to switch

1 participant