mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: fix description for java 9
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user