Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eae8a1ac authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handled filestream object close() call to release the object" into main

parents 7c005061 f181ae1b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -264,8 +264,7 @@ public final class PowerStatsLogger extends Handler {
                final byte[] dataCached = new byte[(int) cachedFile.length()];

                // Get the cached data from file.
                try {
                    final FileInputStream fis = new FileInputStream(cachedFile.getPath());
                try (FileInputStream fis = new FileInputStream(cachedFile.getPath())) {
                    fis.read(dataCached);
                } catch (IOException e) {
                    Slog.e(TAG, "Failed to read cached data from file", e);