Skip to content

Refactor Duplicate literal#17632

Open
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/Duplicate_literal
Open

Refactor Duplicate literal#17632
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/Duplicate_literal

Conversation

@anukalp2804
Copy link
Copy Markdown
Contributor

Summary

This PR resolves SonarCloud rule java:S1192 , String literals should not be duplicated. For that i have done some changes like

  • Define a Constant FROM instead of duplicate literal " from ".

Addressed : #17630

This PR has:

  • been self-reviewed.
  • been built locally with mvn spotless:apply.
  • been built locally with mvn clean package -DskipTests.
  • been built locally with mvn -pl iotdb-core -am test -DskipTests.

Resolves : https://sonarcloud.io/project/issues?sinceLeakPeriod=true&issueStatuses=OPEN%2CCONFIRMED&pullRequest=17612&id=apache_iotdb&open=AZ4ASk9tfV3Ahp1Ty0tp
Define a constant instead of duplicating literal

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.

1 participant