libcore: Address misc minor issues identified by FindBugs
This addresses the following separate issues:
- In DocumentBuilderImpl, extracted ex.getDetail() into a
variable in order to not confuse static analysis tool about
whether that value may change between invocations.
- Elsewhere, convert nested classes to static to avoid an
implicit this reference to the surrounding instance, which
could otherwise prevent that instance from being garbage
collected.
Bug: 28189207
Change-Id: I81fda402418185189010c7014d0dddb4457f002a
3 files changed