File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/local Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -93,17 +93,16 @@ int getDocumentsReadByKey() {
93
93
}
94
94
95
95
/**
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()`)
98
98
*/
99
99
int getOverlaysReadByCollection () {
100
100
return overlaysReadByCollection [0 ];
101
101
}
102
102
103
103
/**
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()`)
107
106
*/
108
107
int getOverlaysReadByKey () {
109
108
return overlaysReadByKey [0 ];
@@ -170,7 +169,7 @@ private DocumentOverlayCache wrapOverlayCache(DocumentOverlayCache subject) {
170
169
@ Nullable
171
170
@ Override
172
171
public Overlay getOverlay (DocumentKey key ) {
173
- overlaysReadByKey [0 ] += 1 ;
172
+ ++ overlaysReadByKey [0 ];
174
173
return subject .getOverlay (key );
175
174
}
176
175
You can’t perform that action at this time.
0 commit comments