Skip to content

Conversation

@georgekankava
Copy link
Contributor

This pull request is focused on resolving occurrences of Sonar rules
squid:S2293 The diamond operator ("<>") should be used.
squid:UnusedPrivateMethod Unused private method should be removed.
squid:S00122 Statements should be on separate lines.
squid:S1192 String literals should not be duplicated.
You can find more information about the issue here:
https://dev.eclipse.org/sonar/coding_rules#q=squid%3AS2293
https://dev.eclipse.org/sonar/coding_rules#q=squid%3AUnusedPrivateMethod
https://dev.eclipse.org/sonar/coding_rules#q=squid%3AS00122
https://dev.eclipse.org/sonar/coding_rules#q=squid%3AS1192
Please let me know if you have any questions.
George Kankava

private void pauseOSC() {
pause();
startButton.setText(isRunning() ? "Resume" : "Start");
startButton.setText(isRunning() ? "Resume" : START);
Copy link
Member

Choose a reason for hiding this comment

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

Here it's weird that "Resume" doesn't get refactored out into a static string as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello Sir, "Resume" has single occurrence in the file, but if you prefer to have it refactored, I will do it.

Copy link
Member

Choose a reason for hiding this comment

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

I know, I assume that's why your tool picked it up. However here for consistency I would refactor it out as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

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.

2 participants