Skip to content

Fix checkStyle final local var and PDM SingularField warning in Document class#497

Closed
pasin wants to merge 1 commit into
release/4.1from
fix-style-pdm-check
Closed

Fix checkStyle final local var and PDM SingularField warning in Document class#497
pasin wants to merge 1 commit into
release/4.1from
fix-style-pdm-check

Conversation

@pasin

@pasin pasin commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Fix using var and PDM SingularField warning in Document class

  • As var is unavailable for source Java 8 source level, use FLDict type explicitly.

  • Made local data variable in Document’s setContent() final per check style warning.

  • Suppress the PMD SingularField warning on extraBackingStore, which is written but never read. It cannot be made a local variable as PMD suggests because it is for keeping the native Fleece backing store from being GC’d while the Document is alive.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

This is a release branch and commits are restricted.

Please confirm this PR is one of the following:

  • A response to a customer ask
  • A change per our security policy
  • A non-functional change (i.e. changes needed for building an older version)
  • A change that has been granted an exception (please comment)

* As var is unavailable for source Java 8 source level, use FLDict type explicitly.

* Made local data variable in Document’s setContent() final per check style warning.

* Suppress the PMD SingularField warning on extraBackingStore, which is written but never read. It cannot be made a local variable as PMD suggests because it is for keeping the native Fleece backing store from being GC’d while the Document is alive.
@pasin pasin force-pushed the fix-style-pdm-check branch from 3a820f5 to 3213df1 Compare June 10, 2026 03:12
@pasin pasin closed this Jun 10, 2026
@pasin pasin deleted the fix-style-pdm-check branch June 10, 2026 05:11
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