Skip to content

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

Closed
mrclmh wants to merge 1 commit into
pmd:mainfrom
mrclmh:issue-6297
Closed

mrclmh wants to merge 1 commit into
pmd:mainfrom
mrclmh:issue-6297

Conversation

@mrclmh

@mrclmh mrclmh commented Dec 3, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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: Update documentation

1 participant