Skip to content

fix issue #3883: Remove redundant String.format usage#3884

Open
YianZhao wants to merge 1 commit intoeclipse-sw360:mainfrom
YianZhao:enhancement/cyclonedx-remove-nested-string-format
Open

fix issue #3883: Remove redundant String.format usage#3884
YianZhao wants to merge 1 commit intoeclipse-sw360:mainfrom
YianZhao:enhancement/cyclonedx-remove-nested-string-format

Conversation

@YianZhao
Copy link
Contributor

Issue: #3883

Summary

This PR removes a redundant nested String.format(...) call in CycloneDxBOMImporter.

Changes made

  • Replaced String.format(String.format(...)) with a single String.format(...)
  • No functional behavior changed

Why this change

The previous implementation worked, but it included unnecessary nesting that reduced readability. Since the inner String.format(...) already produces the final string, the outer call was redundant.

@YianZhao YianZhao force-pushed the enhancement/cyclonedx-remove-nested-string-format branch from 6e980c4 to 4d9066b Compare March 13, 2026 06:12
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