diff options
| author | Daniel Nishi <dhnishi@google.com> | 2019-04-01 13:12:51 -0700 |
|---|---|---|
| committer | Daniel Nishi <dhnishi@google.com> | 2019-04-01 23:27:37 +0000 |
| commit | 6edbf68e84bf56e6d083215e4ed8e3cc32ac48dd (patch) | |
| tree | 8b5a2262a31007c9099279da0f094e3427eda8d8 /docs/html/sdk/api_diff/24/changes | |
| parent | f89753c6c13cecc2641524b8f455a9f73100bb4d (diff) | |
Explicitly close file stream when initializing quotas.
When the device boots and the StorageStatsService is initialized, we
load the last calculated cache quotas from a file. We were never closing
the FileInputStream and leaked a resource.
By using try-with-resources, we can avoid that.
Bug: 128920416
Test: Manual -- did not crash on a phone that booted a few times.
Change-Id: Ib85e571ddf033caf63eef7c69a91336dad1b55bc
Diffstat (limited to 'docs/html/sdk/api_diff/24/changes')
0 files changed, 0 insertions, 0 deletions
