You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extract duplicated string literals into constants in main code (java:S1192) #738
Out of scope:fbs-gen and proto-gen (32 findings). Those are code-generator templates where a constant would hurt readability.
How: pick one module, say so in a comment here, and send one PR. Use judgment: a constant for a name or key repeated across methods is good; for fragments like "</td>" in an HTML builder it may not be, so leave those and explain on the Sonar finding. Behavior must not change. See CONTRIBUTING.md.
hey, i would like to work on this reader module for this issue.
I noticed that SonarCloud has reported two duplicated string literals in Compute (lines 55 and 56).
I'll inspect the occurrences, identify which strings would benefit from being extracted into constants, and make the necessary changes while ensuring that the existing behaviour remains unchanged.
I'll keep my changes limited to the reader module and run the relevant tests before submitting a Pull Request.
Please let me know if this module is available for contribution.
Activity
prajwalpoojari04 commentedon Nov 18, 2026
hey, i would like to work on this
readermodule for this issue.I noticed that SonarCloud has reported two duplicated string literals in
Compute(lines 55 and 56).I'll inspect the occurrences, identify which strings would benefit from being extracted into constants, and make the necessary changes while ensuring that the existing behaviour remains unchanged.
I'll keep my changes limited to the
readermodule and run the relevant tests before submitting a Pull Request.Please let me know if this module is available for contribution.
Thank you!
Extract duplicated string literals into constants in reader (java:S1192)
Extract duplicated string literals into constants in reader (java:S1192)