Skip to content

chore: remove no-op @I18n description annotations from command classes - #100

Merged
wisdommen merged 1 commit into
masterfrom
chore/remove-noop-i18n-annotations
Nov 14, 2026
Merged

wisdommen merged 1 commit into
masterfrom
chore/remove-noop-i18n-annotations

Conversation

@wisdommen

Copy link
Copy Markdown
Member

What and why

Class-level @I18n is deprecated: since 6.3.0 a module's languages come from its lang/* files, and from UltiTools-API 6.5.0 the framework warns about these annotations at build time. This module carried ten @I18n("….description") annotations on command classes that have no runtime effect:

  • Command descriptions are translated from @CmdExecutor.description through the plugin's i18n(...) (framework CommandManager).
  • Language discovery reads the lang/* resources (framework Localized).
  • No framework code reads the class-level @I18n annotation.

Removed (annotation + its import)

BackCommand, DelHomeCommand, SetHomeCommand, TpaHereCommand, HomeCommand, TpDenyCommand, TpaCommand, RecallCommand, TpAcceptCommand and HomesCommand: ten files, 20 deleted lines. No other line changed. CmdExecutor descriptions, help methods and language resources are untouched.

Verification

  • mvn -B clean verify passes before and after the change: 1455 tests, 0 failures.
  • JaCoCo counters are identical (instructions 94.78%, branches 85.69%, lines 97.34%).
  • The existing language-catalogue tests that recognise CmdExecutor description keys pass.

Refs UltiKits/UltiTools-Reborn#902

UAT: not required — removes annotations with no runtime effect; proved by the unchanged full mvn -B clean verify (1455 tests) and the unchanged description/help sources.

🤖 Generated with Claude Code

Keep command descriptions in CmdExecutor and language resources unchanged.

Refs UltiKits/UltiTools-Reborn#902

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wisdommen

Copy link
Copy Markdown
Member Author

Local cross-family review (Opus) of head c35e6de against master: no findings. Confirmed against UltiTools-API 6.4.0: no framework code reads class-level @I18n (languages come from lang/*, command descriptions from CmdExecutor.description()), nothing in the module or its tests references it, and the diff deletes only the ten annotations and their imports.

@wisdommen
wisdommen merged commit 85595a6 into master Nov 14, 2026
2 checks passed
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.

1 participant