Skip to content

Commit 03cb191

Browse files
---
yaml --- r: 10033 b: refs/heads/hzyi-move-bom-info-up c: a879ecf h: refs/heads/master i: 10031: b370c2e
1 parent 2fd95e6 commit 03cb191

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ refs/tags/v0.55.0: 01b46f9b12b2b8a3070467d7dceeb040bbce4ee2
109109
refs/tags/v0.55.1: 9c9664b8be47a8548100c42df02f03a7888a982a
110110
refs/tags/v0.56.0: c31fb69430b7e6d4139db41d8491c0ed56028436
111111
refs/heads/gcs-bucket-lock: 7a109589d7d1c5852961bcd7303936e664ef5091
112-
refs/heads/hzyi-move-bom-info-up: 5281f1b4b8c260f1caa7b6ab1656cd26539950e3
112+
refs/heads/hzyi-move-bom-info-up: a879ecfd0789ea20b399fb34aa05448948aeac94
113113
refs/tags/v0.57.0: f9845be37c0b524de2b3c0f34c539c42fe49b335
114114
refs/tags/v0.58.0: a1f1af76bca0933c003646372b07142cfe22f3fc
115115
refs/tags/v0.59.0: 32a3ffd5009922e34c0dd00c8e49e42a01866241

branches/hzyi-move-bom-info-up/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentReference.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public class DocumentReference {
4646
private final ResourcePath path;
4747
private final FirestoreImpl firestore;
4848

49-
DocumentReference(FirestoreImpl firestore, ResourcePath path) {
49+
protected DocumentReference(
50+
FirestoreImpl firestore, ResourcePath path) { // Elevated access level for mocking.
5051
this.path = path;
5152
this.firestore = firestore;
5253
}

branches/hzyi-move-bom-info-up/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/DocumentSnapshot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ public class DocumentSnapshot {
5353
@Nullable private final Timestamp updateTime;
5454
@Nullable private final Timestamp createTime;
5555

56-
DocumentSnapshot(
56+
protected DocumentSnapshot(
5757
FirestoreImpl firestore,
5858
DocumentReference docRef,
5959
@Nullable Map<String, Value> fields,
6060
@Nullable Timestamp readTime,
6161
@Nullable Timestamp updateTime,
62-
@Nullable Timestamp createTime) {
62+
@Nullable Timestamp createTime) { // Elevated access level for mocking.
6363
this.firestore = firestore;
6464
this.docRef = docRef;
6565
this.fields = fields;

branches/hzyi-move-bom-info-up/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ public int hashCode() {
255255
this(firestore, path, new QueryOptions());
256256
}
257257

258-
private Query(FirestoreImpl firestore, ResourcePath path, QueryOptions queryOptions) {
258+
protected Query(
259+
FirestoreImpl firestore,
260+
ResourcePath path,
261+
QueryOptions queryOptions) { // Elevated access level for mocking.
259262
Preconditions.checkArgument(
260263
path.isCollection(), "Invalid path specified. Path should point to a collection");
261264

branches/hzyi-move-bom-info-up/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QueryDocumentSnapshot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
* that does so.
3838
*/
3939
public class QueryDocumentSnapshot extends DocumentSnapshot {
40-
private QueryDocumentSnapshot(
40+
protected QueryDocumentSnapshot(
4141
FirestoreImpl firestore,
4242
DocumentReference docRef,
4343
Map<String, Value> fields,
4444
Timestamp readTime,
4545
Timestamp updateTime,
46-
Timestamp createTime) {
46+
Timestamp createTime) { // Elevated access level for mocking.
4747
super(firestore, docRef, fields, readTime, updateTime, createTime);
4848
}
4949

branches/hzyi-move-bom-info-up/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/QuerySnapshot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public abstract class QuerySnapshot implements Iterable<QueryDocumentSnapshot> {
3434
private final Query query;
3535
private final Timestamp readTime;
3636

37-
private QuerySnapshot(Query query, Timestamp readTime) {
37+
protected QuerySnapshot(Query query, Timestamp readTime) { // Elevated access level for mocking.
3838
this.query = query;
3939
this.readTime = readTime;
4040
}

0 commit comments

Comments
 (0)