Skip to content

Facelift on spellchecker module#9515

Open
lkishalmi wants to merge 1 commit into
apache:masterfrom
lkishalmi:facelift-spellchecker
Open

Facelift on spellchecker module#9515
lkishalmi wants to merge 1 commit into
apache:masterfrom
lkishalmi:facelift-spellchecker

Conversation

@lkishalmi

Copy link
Copy Markdown
Contributor

Well this is one of the old code we have. Before adding HunSpell support a little facelift won't hurt.

The SpellcheckerOptionsPanel could see an iteration or two. The +/- prefixes in the strings in CheckboxList model bothers me. Though I wanted to avoid accidental functionality changes.

The ErrorHighlightPainter in ComponentPeer became an instance method and used as a method reference instead of creating one instance for each miss-spelled word.

I've removed the getDictionary() method in DictionaryImpl which was supposed to lazy initialize the dictionary field. Though as it was called multiple times during the construction it seems to be pretty useless.

Added a few records where it made sense.

@lkishalmi lkishalmi added this to the NB32 milestone Jul 16, 2026
@lkishalmi lkishalmi requested review from BradWalker and mbien July 16, 2026 03:49
@lkishalmi lkishalmi added Code cleanup Label for cleanup done on the Netbeans IDE Editor labels Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code cleanup Label for cleanup done on the Netbeans IDE Editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant