We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7090150 commit c6f8811Copy full SHA for c6f8811
firebase-storage/src/testUtil/java/com/google/firebase/storage/network/MockInputStreamHelper.java
@@ -14,6 +14,7 @@
14
15
package com.google.firebase.storage.network;
16
17
+import com.google.errorprone.annotations.CanIgnoreReturnValue;
18
import java.io.ByteArrayInputStream;
19
import java.io.IOException;
20
import java.io.InputStream;
@@ -37,6 +38,7 @@ public MockInputStreamHelper(final byte[] responseData) {
37
38
this.injectExceptions = new TreeSet<>();
39
}
40
41
+ @CanIgnoreReturnValue
42
public MockInputStreamHelper injectExceptionAt(int bytePos) {
43
if (opened) {
44
throw new IllegalStateException("Can't add exception points after reading from stream.");
0 commit comments