commit | f7aab022dcbfcd8f27b409ab92b4bca4a84d0b8a | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Wed Sep 29 17:29:11 2010 -0700 |
committer | Brian Carlstrom <bdc@google.com> | Mon Oct 04 23:14:09 2010 -0700 |
tree | 65d5dcc11bb214ba293a4e2c5df4ec69343f66d9 | |
parent | 6b7d0a5aa9f2a3980fed6e29a38a8680c60db6b8 [diff] |
CloseGuard: finalizers for closeable objects should log complaints Introducing CloseGuard which warns when resources are implictly cleaned up by finalizers when an explicit termination method, to use the Effective Java "Issue 7: Avoid finalizers" terminology, should have been used by the caller. libcore classes that can use CloseGuard now do so. Bug: 3041575 Change-Id: I4a4e3554addaf3075c823feb0a0ff0ad1c1f6196