Bug 470344 - Replace new Boolean with Boolean.valueOf

Using `new Boolean()` results in the creation of a new object on the
heap, when the flyweight `Boolean.TRUE` and `Boolean.FALSE` are available.
Java 1.4 added a `Boolean.valueOf()` which can be used in place of
`new Boolean()` but which will use the existing flyweight values instead.

Globally change `new Boolean(...)` to `Boolean.valueOf(...)` and replace
constant valued expressions with their flyweight counterparts. In-line
`Boolean.valueOf(true)` with `Boolean.TRUE`, c.f. false.

Bug: 470344
Change-Id: I673669144881f738006b8567e99e5760e851ad07
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
14 files changed
tree: 299133a209f1e37630c0f3e3b1fc96f5d3ed4186
  1. bundles/
  2. examples/
  3. features/
  4. tests/
  5. .gitignore
  6. CONTRIBUTING.md
  7. pom.xml