Skip to content

Multiple code improvements - squid:SwitchLastCaseIsDefaultCheck, squid:S1197, squid:S1192, squid:S2131#117

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

Multiple code improvements - squid:SwitchLastCaseIsDefaultCheck, squid:S1197, squid:S1192, squid:S2131#117
georgekankava wants to merge 1 commit intoapache:masterfrom
DevFactory:release/multiple-code-improvements-fix-3

Conversation

@georgekankava
Copy link
Copy Markdown

This pull request is focused on resolving occurrences of Sonar rules
squid:SwitchLastCaseIsDefaultCheck - "switch" statements should end with a "default" clause.
squid:S1197 - Array designators "[]" should be on the type, not the variable.
squid:S1192 - String literals should not be duplicated.
squid:S2131 - Primitives should not be boxed just for "String" conversion.
This pull request removes technical debit of 80 minutes.
You can find more information about the issue here:
https://dev.eclipse.org/sonar/rules/show/squid:SwitchLastCaseIsDefaultCheck
https://dev.eclipse.org/sonar/rules/show/squid:S1197
https://dev.eclipse.org/sonar/rules/show/squid:S1192
https://dev.eclipse.org/sonar/rules/show/squid:S2131
Please let me know if you have any questions.
George Kankava

@joshelser
Copy link
Copy Markdown
Member

core/src/main/java/org/apache/accumulo/core/client/impl/thrift/ThriftSecurityException.java is generated code. Do not change that.

@georgekankava
Copy link
Copy Markdown
Author

Same comment here.

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