Skip to content

Commit e65680d

Browse files
authored
More doc fixes for 24.6.0 (firebase#4959)
1 parent 07f2567 commit e65680d

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

firebase-firestore/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Unreleased
2+
* [fixed] Fixed stack overflow caused by deeply nested server timestamps (#4702).
23
* [feature] Add new cache config APIs to customize SDK's cache setup.
34
* [feature] Add LRU garbage collector to SDK's memory cache.
5+
* [changed] Mark isPersistenceEnabled and getCacheSizeBytes as deprecated from FirebaseFirestoreSettings.
6+
* [changed] Mark isPersistenceEnabled, getCacheSizeBytes, setPersistenceEnabled and setCacheSizeBytes
7+
from FirebaseFirestoreSettings.Builder as deprecated.
48
* [changed] Internal changes to ensure alignment with other SDK releases.
59

610
# 24.5.0

firebase-firestore/src/main/java/com/google/firebase/firestore/FirebaseFirestoreSettings.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ public Builder setSslEnabled(boolean value) {
105105
*
106106
* @return A settings object that uses local persistent storage as specified by the given
107107
* <tt>value</tt>.
108-
* @deprecated Use {@link
108+
* @deprecated Instead, use {@link
109109
* FirebaseFirestoreSettings.Builder#setLocalCacheSettings(LocalCacheSettings)} to configure
110-
* SDK cache instead.
110+
* SDK cache.
111111
*/
112112
@NonNull
113113
@Deprecated
@@ -131,9 +131,9 @@ public Builder setPersistenceEnabled(boolean value) {
131131
*
132132
* @return A settings object on which the cache size is configured as specified by the given
133133
* {@code value}.
134-
* @deprecated Use {@link
134+
* @deprecated Instead, use {@link
135135
* FirebaseFirestoreSettings.Builder#setLocalCacheSettings(LocalCacheSettings)} to configure
136-
* SDK cache instead.
136+
* SDK cache.
137137
*/
138138
@NonNull
139139
@Deprecated
@@ -157,7 +157,7 @@ public Builder setCacheSizeBytes(long value) {
157157
*
158158
* <p>When unspecified, {@link PersistentCacheSettings} will be used by default.
159159
*
160-
* <p>NOTE: Calling this setter and {@code setPersistenceEnabled()} or @{code
160+
* <p>NOTE: Calling this setter and {@code setPersistenceEnabled()} or {@code
161161
* setCacheSizeBytes()} at the same time will throw an exception during SDK initialization.
162162
* Instead, use the configuration in the {@link PersistentCacheSettings} object to specify the
163163
* cache size.
@@ -196,8 +196,8 @@ public boolean isSslEnabled() {
196196

197197
/**
198198
* @return boolean indicating whether local persistent storage is enabled or not.
199-
* @deprecated Build the {@code FirebaseFirestoreSettings} instance to check cache
200-
* configurations.
199+
* @deprecated Instead, build the {@link FirebaseFirestoreSettings} instance to check the SDK
200+
* cache configurations.
201201
*/
202202
@Deprecated
203203
public boolean isPersistenceEnabled() {
@@ -206,8 +206,8 @@ public boolean isPersistenceEnabled() {
206206

207207
/**
208208
* @return cache size for on-disk data.
209-
* @deprecated Build the {@code FirebaseFirestoreSettings} instance to check cache
210-
* configurations.
209+
* @deprecated Instead, build the {@link FirebaseFirestoreSettings} instance to check the SDK
210+
* cache configurations.
211211
*/
212212
@Deprecated
213213
public long getCacheSizeBytes() {
@@ -297,7 +297,8 @@ public boolean isSslEnabled() {
297297
/**
298298
* Returns whether or not to use local persistent storage.
299299
*
300-
* @deprecated Use {@link FirebaseFirestoreSettings#getCacheSettings()} instead.
300+
* @deprecated Instead, use {@link FirebaseFirestoreSettings#getCacheSettings()} to check which
301+
* cache is used.
301302
*/
302303
@Deprecated
303304
public boolean isPersistenceEnabled() {
@@ -312,7 +313,8 @@ public boolean isPersistenceEnabled() {
312313
* Returns the threshold for the cache size above which the SDK will attempt to collect the least
313314
* recently used documents.
314315
*
315-
* @deprecated Use {@link FirebaseFirestoreSettings#getCacheSettings()} instead.
316+
* @deprecated Instead, use {@link FirebaseFirestoreSettings#getCacheSettings()} to check cache
317+
* size.
316318
*/
317319
@Deprecated
318320
public long getCacheSizeBytes() {

firebase-firestore/src/main/java/com/google/firebase/firestore/LocalCacheSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* Marker interface implemented by all supported cache settings.
1919
*
20-
* <p>The two cache types supported are {@link PersistentCacheSettings} and {@link
21-
* MemoryCacheSettings}. Custom implementation is not supported by the SDK.
20+
* <p>{@link PersistentCacheSettings} and {@link MemoryCacheSettings} are the two only cache types
21+
* supported by the SDK. Custom implementation is not supported.
2222
*/
2323
public interface LocalCacheSettings {}

firebase-firestore/src/main/java/com/google/firebase/firestore/MemoryCacheSettings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <p>To use, create an instance using {@link MemoryCacheSettings#newBuilder().build()}, then set
2525
* the instance to {@link
2626
* FirebaseFirestoreSettings.Builder#setLocalCacheSettings(LocalCacheSettings)}, and use the built
27-
* `FirebaseFirestoreSettings` instance to configure Firestore SDK.
27+
* {@code FirebaseFirestoreSettings} instance to configure the Firestore SDK.
2828
*/
2929
public final class MemoryCacheSettings implements LocalCacheSettings {
3030
private MemoryGarbageCollectorSettings gcSettings;
@@ -58,6 +58,7 @@ public String toString() {
5858
return "MemoryCacheSettings{gcSettings=" + getGarbageCollectorSettings() + "}";
5959
}
6060

61+
/** Returns the {@link MemoryGarbageCollectorSettings} object used to configure the SDK cache. */
6162
@NonNull
6263
public MemoryGarbageCollectorSettings getGarbageCollectorSettings() {
6364
return gcSettings;
@@ -75,6 +76,7 @@ public MemoryCacheSettings build() {
7576
return new MemoryCacheSettings(gcSettings);
7677
}
7778

79+
/** Uses the given garbage collector settings to configure memory cache. */
7880
@NonNull
7981
public Builder setGcSettings(@NonNull MemoryGarbageCollectorSettings gcSettings) {
8082
this.gcSettings = gcSettings;

firebase-firestore/src/main/java/com/google/firebase/firestore/PersistentCacheSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <p>To use, create an instance using {@link PersistentCacheSettings#newBuilder().build()}, then
2525
* set the instance to {@link
2626
* FirebaseFirestoreSettings.Builder#setLocalCacheSettings(LocalCacheSettings)}, and use the built
27-
* `FirebaseFirestoreSettings` instance to configure Firestore SDK.
27+
* {@code FirebaseFirestoreSettings} instance to configure the Firestore SDK.
2828
*/
2929
public final class PersistentCacheSettings implements LocalCacheSettings {
3030
/**

0 commit comments

Comments
 (0)