File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
firebase-installations/src/main/java/com/google/firebase/installations/remote Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3737import java .io .IOException ;
3838import java .io .InputStreamReader ;
3939import java .io .OutputStream ;
40- import java .io .ObjectStreamException
4140import java .net .HttpURLConnection ;
4241import java .net .URL ;
4342import 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 );
You can’t perform that action at this time.
0 commit comments