IG: fix description for java 9

This commit is contained in:
Bas Leijdekkers
2015-11-26 18:05:33 +01:00
parent 215e18c658
commit 93524203ad
@@ -5,7 +5,7 @@ Double brace initialization can cause memory leaks when used from a non-<b>stati
because the anonymous <b>class</b> created will maintain a reference to the surrounding object.
It has worse performance than regular initialization because of the additional class loading required.
It can cause <b>equals()</b> comparisons to fail, if the <b>equals()</b> method does not accept subclasses as parameter (see link above).
And finally, it cannot be combined with Java 7 diamond operator, because that cannot be used with anonymous classes.
And finally, pre Java 9 it cannot be combined with the diamond operator, because that cannot be used with anonymous classes.
<!-- tooltip end -->
<p>
<small>New in 14</small>