Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Dead stores should be removed - #122

Open
AymanDF wants to merge 1 commit into
jmxtrans:masterfrom
DevFactory:release/remove-dead-stores-fix-1
Open

Dead stores should be removed#122
AymanDF wants to merge 1 commit into
jmxtrans:masterfrom
DevFactory:release/remove-dead-stores-fix-1

Conversation

@AymanDF

@AymanDF AymanDF commented Mar 17, 2016

Copy link
Copy Markdown
Contributor

This pull request is focused on resolving occurrences of Sonar rule squid:S1854 - “ Dead stores should be removed ”. You can find more information about the issue here:
https://dev.eclipse.org/sonar/rules/show/squid:S1854
Please let me know if you have any questions.
Ayman Abdelghany.


private URL[] makeEtcdBaseUris(String etcdURI) throws EmbeddedJmxTransException {
String serverList = null;
String serverList;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is probably a good candidate for a method extraction and the removal of the conditional assignment. This would IMHO bring more clarity than just removing the dead store.

@cyrille-leclerc

Copy link
Copy Markdown
Member

@AymanDF sorry but I prefer to let the author of the code decide of the style of the code for things such as initialization to zero as I personally think that it helps readability.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants