Skip to content

Commit cf838e7

Browse files
Fixes
1 parent 788bc04 commit cf838e7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/local/CountingQueryEngine.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,16 @@ int getDocumentsReadByKey() {
9393
}
9494

9595
/**
96-
* Returns the number of mutations returned by the OVelrayCaches's
97-
* `getAllMutationBatchesAffectingQuery()` API (since the last call to `resetCounts()`)
96+
* Returns the number of mutations returned by the OverlayCache's `getOverlays()` API (since the
97+
* last call to `resetCounts()`)
9898
*/
9999
int getOverlaysReadByCollection() {
100100
return overlaysReadByCollection[0];
101101
}
102102

103103
/**
104-
* Returns the number of mutations returned by the MutationQueue's
105-
* `getAllMutationBatchesAffectingDocumentKey()` and
106-
* `getAllMutationBatchesAffectingDocumentKeys()` APIs (since the last call to `resetCounts()`)
104+
* Returns the number of mutations returned by the OverlayCache's `getOverlay()` API (since the
105+
* last call to `resetCounts()`)
107106
*/
108107
int getOverlaysReadByKey() {
109108
return overlaysReadByKey[0];
@@ -170,7 +169,7 @@ private DocumentOverlayCache wrapOverlayCache(DocumentOverlayCache subject) {
170169
@Nullable
171170
@Override
172171
public Overlay getOverlay(DocumentKey key) {
173-
overlaysReadByKey[0] += 1;
172+
++overlaysReadByKey[0];
174173
return subject.getOverlay(key);
175174
}
176175

0 commit comments

Comments
 (0)