Skip to content

Remove dead NLS message constants and an orphaned key - #2416

Open
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:remove-dead-nls-resources
Open

Remove dead NLS message constants and an orphaned key#2416
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:remove-dead-nls-resources

Conversation

@vogella

@vogella vogella commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Three NLS resources are dead. Messages.SpyProcessor_category in org.eclipse.pde.spy.core and Messages.ModelImportPage1_Import1 in org.eclipse.e4.tools.emf.ui are declared but have no entry in their messages.properties and are read nowhere, so NLS.initializeMessages currently logs a "NLS missing message" warning for each on class initialization. Removing them silences that noise.

The third is the reverse case: the key XmiTab_TypeTextToSearch in internal/common/component/tabs/messages.properties has no matching field in the sibling Messages class. XmiTab imports org.eclipse.e4.tools.emf.ui.internal.Messages instead and reads the value through its injected instance field, so that entry is never loaded and the visible text is unaffected.

Note that only the two field removals are compile-verified; the orphaned key is bound reflectively, so it was checked by reading the code. Built locally with mvn verify -pl :org.eclipse.pde.spy.core,:org.eclipse.e4.tools.emf.ui.

Messages.SpyProcessor_category and Messages.ModelImportPage1_Import1 are
declared but have no entry in their messages.properties and are read
nowhere, so NLS.initializeMessages logs a "NLS missing message" warning
for each of them on class initialization.

The key XmiTab_TypeTextToSearch in the tabs messages.properties has no
matching field in the sibling Messages class. XmiTab imports
org.eclipse.e4.tools.emf.ui.internal.Messages instead and reads the value
through its injected instance field, so the entry is never loaded.
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

Test Results

  129 files  +    4    129 suites  +4   36m 21s ⏱️ + 5m 8s
3 531 tests ±    0  3 477 ✅ +    1   54 💤 ± 0  0 ❌  - 1 
9 396 runs  +2 139  9 266 ✅ +2 116  130 💤 +24  0 ❌  - 1 

Results for commit 80af01d. ± Comparison against base commit f6968e0.

@vogella
vogella marked this pull request as ready for review August 10, 2026 05:59
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