Skip to content

Multiple code improvements - squid:1213, squid:S2275, squid:SwitchLastCaseIsDefaultCheck, squid:UselessImportCheck, squid:ClassVariableVisibilityCheck#118

Closed
georgekankava wants to merge 1 commit intoapache:masterfrom
DevFactory:release/multiple-code-improvements-fix-4
Closed

Multiple code improvements - squid:1213, squid:S2275, squid:SwitchLastCaseIsDefaultCheck, squid:UselessImportCheck, squid:ClassVariableVisibilityCheck#118
georgekankava wants to merge 1 commit intoapache:masterfrom
DevFactory:release/multiple-code-improvements-fix-4

Conversation

@georgekankava
Copy link
Copy Markdown

This pull request is focused on resolving occurrences of Sonar rules
squid:S1213 - The members of an interface declaration or class should appear in a pre-defined order.
squid:S2275 - Printf-style format strings should not lead to unexpected behavior at runtime.
squid:SwitchLastCaseIsDefaultCheck - "switch" statements should end with a "default" clause.
squid:UselessImportCheck - Useless imports should be removed.
squid:ClassVariableVisibilityCheck - Class variable fields should not have public accessibility.
This pull request removes technical debt of 168 minutes.
You can find more information about the issue here:
https://dev.eclipse.org/sonar/rules/show/squid:S1213
https://dev.eclipse.org/sonar/rules/show/squid:S2275
https://dev.eclipse.org/sonar/rules/show/squid:SwitchLastCaseIsDefaultCheck
https://dev.eclipse.org/sonar/rules/show/squid:UselessImportCheck
https://dev.eclipse.org/sonar/rules/show/squid:ClassVariableVisibilityCheck
Please let me know if you have any questions.
George Kankava

…tCaseIsDefaultCheck, squid:UselessImportCheck, squid:ClassVariableVisibilityCheck

public class ClientOpts extends Help {

public static class TimeConverter implements IStringConverter<Long> {
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.

I don't see the point behind you reorganizing this file.

@joshelser
Copy link
Copy Markdown
Member

Again core/src/main/java/org/apache/accumulo/core/client/impl/thrift/TDiskUsage.java is auto-generated code.

Please consolidate all of these pull requests into one. We do not need five pull requests for 2 to 3 nit-picky fixes.

@georgekankava
Copy link
Copy Markdown
Author

Please consolidate all of these pull requests into one. We do not need five pull requests for 2 to 3 nit-picky fixes.
@joshelser So I will close this pull requests then.

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