Skip to content

Commit 7d3849b

Browse files
schmidt-sebastianpongad
authored andcommitted
---
yaml --- r: 9333 b: refs/heads/master c: 412cf0d h: refs/heads/master i: 9331: f4c8d77
1 parent 964eab7 commit 7d3849b

5 files changed

Lines changed: 21 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c001e14a6119affebd94dcbcc715509392d2c527
2+
refs/heads/master: 412cf0df77c4ea55e4e85a545f622ff4f14db0b4
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 1e525ea89a8c2133b947a8f1e3306079d006152d
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/google-cloud-firestore/src/main/java/com/google/cloud/firestore/CollectionReference.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@
2626

2727
/**
2828
* A CollectionReference can be used for adding documents, getting document references, and querying
29-
* for documents (using the methods inherited from Query)
29+
* for documents (using the methods inherited from Query).
30+
*
31+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
32+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
33+
* that does so.
3034
*/
31-
public final class CollectionReference extends Query {
35+
public class CollectionReference extends Query {
3236

3337
/**
3438
* Creates a CollectionReference from a complete collection path.

trunk/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentReference.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
* write, read, or listen to the location. There may or may not exist a document at the referenced
3737
* location. A DocumentReference can also be used to create a CollectionReference to a
3838
* subcollection.
39+
*
40+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
41+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
42+
* that does so.
3943
*/
40-
public final class DocumentReference {
44+
public class DocumentReference {
4145

4246
private final ResourcePath path;
4347
private final FirestoreImpl firestore;

trunk/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSnapshot.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
* <p>If the DocumentSnapshot points to a non-existing document, getData() and its corresponding
4242
* methods will return null. You can always explicitly check for a document's existence by calling
4343
* {@link #exists()}.
44+
*
45+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
46+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
47+
* that does so.
4448
*/
4549
public class DocumentSnapshot {
4650

trunk/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QueryDocumentSnapshot.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@
3232
* <p>QueryDocumentSnapshot offers the same API surface as {@link DocumentSnapshot}. Since query
3333
* results contain only existing documents, the {@link #exists()} method will always return true and
3434
* {@code getData()} will never be null.
35+
*
36+
* <p><b>Subclassing Note</b>: Firestore classes are not meant to be subclassed except for use in
37+
* test mocks. Subclassing is not supported in production code and new SDK releases may break code
38+
* that does so.
3539
*/
36-
public final class QueryDocumentSnapshot extends DocumentSnapshot {
40+
public class QueryDocumentSnapshot extends DocumentSnapshot {
3741
private QueryDocumentSnapshot(
3842
FirestoreImpl firestore,
3943
DocumentReference docRef,

0 commit comments

Comments
 (0)