Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[java] Fix #6297: AvoidUsingVolatile: Do not report long and double#6307

Draft
mrclmh wants to merge 1 commit intopmd:mainfrom
mrclmh:issue-6297
Draft

[java] Fix #6297: AvoidUsingVolatile: Do not report long and double#6307
mrclmh wants to merge 1 commit intopmd:mainfrom
mrclmh:issue-6297

Conversation

@mrclmh
Copy link
Contributor

@mrclmh mrclmh commented Dec 3, 2025

Describe the PR

Make an exception for double and long fields in AvoidUsingVolatile because of non-atomic treatment.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@pmd-actions-helper
Copy link
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 36 violations, 0 errors and 0 configuration errors.

Regression Tester Report

(comment created at 2025-12-03 13:16:21+00:00 for e1ec5ae)

@mrclmh mrclmh marked this pull request as draft December 26, 2025 11:37
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.

[java] AvoidUsingVolatile: False positive for long and double

1 participant