Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common/main/java/com/couchbase/lite/Document.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ static Document getDocumentWithRevisions(@NonNull Collection collection, @NonNul

// Set by setData(FLSliceResult,boolean) to keep the Fleece backing store from being GC'd.
// (This is kind of a hack, and it's only used ephemerally by Kotlin serialization.)
@SuppressWarnings("PMD.SingularField")
@GuardedBy("lock")
@Nullable
private FLSliceResult extraBackingStore;
Expand Down Expand Up @@ -632,7 +633,7 @@ private void setC4Document(@Nullable C4Document c4doc, boolean mutable) {
// for use by CollectionExtensions.kt
void setContent(@NonNull FLSliceResult fleeceData, boolean mutable) {
synchronized (lock) {
var data = FLValue.fromData(fleeceData).asFLDict();
final FLDict data = FLValue.fromData(fleeceData).asFLDict();
extraBackingStore = fleeceData;
setContentLocked(data, mutable);
}
Expand Down