Skip to content

Commit 42d61e6

Browse files
committed
formatting on SessionReportingCoordinator.java
1 parent f5809d0 commit 42d61e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/SessionReportingCoordinator.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -428,13 +428,13 @@ private static CrashlyticsReport.ApplicationExitInfo convertApplicationExitInfo(
428428
@RequiresApi(api = Build.VERSION_CODES.KITKAT)
429429
public static String convertInputStreamToString(InputStream inputStream) throws IOException {
430430
try (BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);
431-
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) {
432-
byte[] bytes = new byte[DEFAULT_BUFFER_SIZE];
433-
int length;
434-
while ((length = bufferedInputStream.read(bytes)) != -1) {
435-
byteArrayOutputStream.write(bytes, 0, length);
436-
}
437-
return byteArrayOutputStream.toString(StandardCharsets.UTF_8.name());
431+
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream()) {
432+
byte[] bytes = new byte[DEFAULT_BUFFER_SIZE];
433+
int length;
434+
while ((length = bufferedInputStream.read(bytes)) != -1) {
435+
byteArrayOutputStream.write(bytes, 0, length);
436+
}
437+
return byteArrayOutputStream.toString(StandardCharsets.UTF_8.name());
438438
}
439439
}
440440

0 commit comments

Comments
 (0)