summaryrefslogtreecommitdiff
path: root/core/java/android/util/CloseGuard.java
Commit message (Collapse)AuthorAgeFilesLines
* CloseGuard: Fix JavaDoc code sample to use correct APIDavid Su2020-01-271-2/+2
| | | | | | | | | | | The code sample in the JavaDoc shows `CloseGuard.get()` to create a new CloseGuard, which is incorrect. The correct API is `new CloseGuard()`. Bug: 148291235 Test: compiles Change-Id: I1dd24fff150e671007b67c023b20e078557f2966
* Fix android.util.CloseGuard sample usageDavid Su2019-12-161-1/+8
| | | | | | | | | Updated first sample with `Reference.reachabilityFence(this)` to be consistent with the second sample. Bug: 145831809 Test: none Change-Id: I8c625de4f36a8cd52a3825021ff631db62f04662
* Expose CloseGuard as a public APIDavid Su2019-12-101-0/+138
Wrap dalvik.system.CloseGuard and expose it as a public API from android.util. Bug: 145831809 Test: atest CloseGuardTest Change-Id: Ia44c84a69a5fb693fb8bb1a075c18a60253cedfc