fix argument to CloseGuard.open()

Based on documentation, String parameter to CloseGuard.open() should be the name of the method to close the resource (in this case Resource.close()).

As currently written, the debug output from warnIfOpen() will be "Resource failed to call constructor."

Bug: 131838407
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I25f005a7944bf3995ae6dc4c021ed1034f2187dd
This commit is contained in:
Maciej Żenczykowski
2023-01-07 09:57:54 +00:00
parent 33b2163412
commit 401122894d
2 changed files with 2 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ public class IpSecManager {
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
mCloseGuard.open("open");
mCloseGuard.open("close");
}
/** @hide */