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:
@@ -273,7 +273,7 @@ public class IpSecManager {
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
mCloseGuard.open("open");
|
||||
mCloseGuard.open("close");
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
|
||||
Reference in New Issue
Block a user