Skip to content

CBL-8389 : Fix build and static analysis issues in kt-serialization API changes#498

Merged
pasin merged 1 commit into
release/4.1from
CBL-8389-fix-build
Jun 10, 2026
Merged

CBL-8389 : Fix build and static analysis issues in kt-serialization API changes#498
pasin merged 1 commit into
release/4.1from
CBL-8389-fix-build

Conversation

@pasin

@pasin pasin commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator
  • Replace var with explicit FLDict type in Document.setContent (common is compiled at Java 8)
  • Suppress PMD SingularField and SpotBugs URF_UNREAD_FIELD on Document.extraBackingStore (keep-alive field)
  • Add null check on FLValue.fromData() result in Document.setContent (NP_NULL_ON_SOME_PATH)
  • Move serialization tests from test/java to test/kotlin so that only the android-ktx test builds compile them :
    • FleeceSerializationTest.kt moved as-is
    • ResultTest.kt renamed to ResultSerializationTest.kt
    • Serialization test and TestModel extracted from CollectionTest.kt into new CollectionSerializationTest.kt

…PI changes

* Replace var with explicit FLDict type in Document.setContent (common is compiled at Java 8)
* Suppress PMD SingularField and SpotBugs URF_UNREAD_FIELD on Document.extraBackingStore (keep-alive field)
* Add null check on FLValue.fromData() result in Document.setContent (NP_NULL_ON_SOME_PATH)
* Move serialization tests from test/java to test/kotlin so that only the android-ktx test builds compile them :
    - FleeceSerializationTest.kt moved as-is
    - ResultTest.kt renamed to ResultSerializationTest.kt
    - Serialization test and TestModel extracted from CollectionTest.kt into new CollectionSerializationTest.kt
@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)

@pasin pasin changed the title CBL-8389 : Fix build and static analysis issues in kt-serialization A… CBL-8389 : Fix build and static analysis issues in kt-serialization API changes Jun 10, 2026
@pasin pasin requested a review from borrrden June 10, 2026 05:19
@pasin pasin merged commit ccdf831 into release/4.1 Jun 10, 2026
1 check passed
@pasin pasin deleted the CBL-8389-fix-build branch June 10, 2026 05:22
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.

2 participants