Community
Participate
Working Groups
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 `new Boolean(...).booleanValue()` to the equivalent `Boolean.parseBoolean(...)
New Gerrit change created: https://git.eclipse.org/r/52998
Thanks for the contribution. We will take this up in next Miletstone.
Any reason this cannot be merged now?
(In reply to Alex Blewitt from comment #3) > Any reason this cannot be merged now? Yes, Now M2 has started and we will be taking this up shortly.
Have given a minor comment, after that change we can deliver the code.
I see no comment in the code review. Did you submit it, or is it still in draft mode?
(In reply to Alex Blewitt from comment #6) > I see no comment in the code review. Did you submit it, or is it still in > draft mode? Posted, Thanks.
Fixed as per comments
Gerrit change https://git.eclipse.org/r/52998 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=9d920dc184c0ea2271a9f088d1af6f52df1b4eed
.
Verified by Source inspection using Eclipse SDK Version: Neon (4.6) Build id: I20150913-2000