Repository navigation
chore: remove no-op @I18n description annotations from command classes - #100
Merged
Merged
Conversation
Keep command descriptions in CmdExecutor and language resources unchanged. Refs UltiKits/UltiTools-Reborn#902 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Local cross-family review (Opus) of head c35e6de against |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Class-level
@I18nis deprecated: since 6.3.0 a module's languages come from itslang/*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:@CmdExecutor.descriptionthrough the plugin'si18n(...)(frameworkCommandManager).lang/*resources (frameworkLocalized).@I18nannotation.Removed (annotation + its import)
BackCommand,DelHomeCommand,SetHomeCommand,TpaHereCommand,HomeCommand,TpDenyCommand,TpaCommand,RecallCommand,TpAcceptCommandandHomesCommand: ten files, 20 deleted lines. No other line changed.CmdExecutordescriptions, help methods and language resources are untouched.Verification
mvn -B clean verifypasses before and after the change: 1455 tests, 0 failures.CmdExecutordescription 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