zap-extensions
zap-extensions copied to clipboard
spider: SAST (SonarLint) Fixes
Overview
- Use isEmpty vs length checks.
- Use instanceof assignment where applicable.
- Use text blocks vs concatenation where applicable.
- Use computeIfAbsent vs get/put where applicable.
- Use charset constants from JRE vs string literals.
- Use constants from base classes vs extended classes.
- Remove useless conditions/assignments.
Related Issues
n/a
Checklist
- [ ] Update help
- [x] Update changelog
- [x] Run
./gradlew spotlessApplyfor code formatting - [ ] Write tests
- [x] Check code coverage
- [x] Sign-off commits
- [x] Squash commits
- [x] Use a descriptive title
Checkmarx One – Scan Summary & Details – f49ee7fa-231e-45be-9160-633048f47566
Great job! No new security vulnerabilities introduced in this pull request
Use @Checkmarx to reach out to us for assistance.
Just send a PR comment with @Checkmarx followed by a natural language request.
Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR