Skip to content

Commit 894b726

Browse files
authored
Adding missing semicolon. (firebase#1303)
* Adding missing semicolon. Embarrassing. * Using IOException instead ObjectStreamException
1 parent 8e2fb65 commit 894b726

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

firebase-installations/src/main/java/com/google/firebase/installations/remote/FirebaseInstallationServiceClient.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import java.io.IOException;
3838
import java.io.InputStreamReader;
3939
import java.io.OutputStream;
40-
import java.io.ObjectStreamException
4140
import java.net.HttpURLConnection;
4241
import java.net.URL;
4342
import java.nio.charset.Charset;
@@ -179,7 +178,7 @@ private void writeFIDCreateRequestBodyToOutputStream(
179178
throws IOException {
180179
OutputStream outputStream = httpURLConnection.getOutputStream();
181180
if (outputStream == null) {
182-
throw new ObjectStreamException("Cannot send CreateInstallation request to FIS. No OutputStream available.");
181+
throw new IOException("Cannot send CreateInstallation request to FIS. No OutputStream available.");
183182
}
184183

185184
GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputStream);
@@ -207,7 +206,7 @@ private void writeGenerateAuthTokenRequestBodyToOutputStream(HttpURLConnection h
207206
throws IOException {
208207
OutputStream outputStream = httpURLConnection.getOutputStream();
209208
if (outputStream == null) {
210-
throw new ObjectStreamException("Cannot send GenerateAuthToken request to FIS. No OutputStream available.");
209+
throw new IOException("Cannot send GenerateAuthToken request to FIS. No OutputStream available.");
211210
}
212211

213212
GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputStream);

0 commit comments

Comments
 (0)