Skip to content

Conversation

@k-rus
Copy link
Member

@k-rus k-rus commented Nov 19, 2025

While working on CNDB-15608, IntelliJ lint complains were noticed, which are not related to the actual changes in the patch port. Thus I fix them in this separate commit to avoid unnecessary noise while working on the actual patch port.

Many of the changes are align what I have already merged earlier in other PRs.
Some of the changes might not match preferences from others and I am open for discussion.

The changes include:

  • Remove unused imports
  • Remove unnecessary boilerplate code for unnamed Comparator construction
  • Use the formatter of the logger instead of string concatenation
  • Use method instead of lambda
  • Remove unnecessary suppression of resource warnings
  • Simplify Boolean conditions
  • Remove unnecessary modifiers in interfaces
  • Fix typos
  • Fixing links in javadoc comments
  • Add static modifier to nested classes
  • Remove class fields when not used
  • Remove unnecessary throws in method signatures
  • Use final when recommended
  • Remove unused method arguments
  • Replace single char strings with chars
  • Remove unnecessary null variable initialization
  • Replace assert true with assert equal
  • Change order of assert arguments to have expected value first
  • Remove unnecessary explicit casting

While working on CNDB-15608, IntelliJ lint complains were noticed,
which are not related to the actual changes in the patch port. Thus I
fix them in this separate commit to avoid unnecessary noise while
working on the actual patch port.

The changes include:
- Remove unused imports
- Remove unnecessary boilerplate code for unnamed Comparator
construction
- Use the formatter of the logger instead of string concatenation
- Use method instead of lambda
- Remove unnecessary suppression of resource warnings
- Simplify Boolean conditions
- Remove unnecessary modifiers in interfaces
- Fix typos
- Fixing links in javadoc comments
- Add static modifier to nested classes
- Remove class fields when not used
- Remove unnecessary throws in method signatures
- Use final when recommended
- Remove unused method arguments
- Replace single char strings with chars
- Remove unnecessary null variable initialization
- Replace assert true with assert equal
- Change order of assert arguments to have expected value first
- Remove unnecessary explicit casting
@github-actions
Copy link

github-actions bot commented Nov 19, 2025

Checklist before you submit for review

  • This PR adheres to the Definition of Done
  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits
  • All new files should contain the DataStax copyright header instead of the Apache License one

@sonarqubecloud
Copy link

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.

3 participants