Skip to content

Commit

Permalink
Fix visibility of ThreadConfinedReferenceCounter#localCount
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbarber committed Jun 21, 2021
1 parent aec8d53 commit ab0a5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realm/realm-library/src/main/java/io/realm/RealmCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private static class ThreadConfinedReferenceCounter extends ReferenceCounter {
// The Realm instance in this thread.
private final ThreadLocal<BaseRealm> localRealm = new ThreadLocal<>();
// How many references to this Realm instance in this thread.
protected final ThreadLocal<Integer> localCount = new ThreadLocal<>();
private final ThreadLocal<Integer> localCount = new ThreadLocal<>();

@Override
public boolean hasInstanceAvailableForThread() {
Expand Down

0 comments on commit ab0a5f0

Please sign in to comment.