summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/src/inspectionDescriptions/InnerClassMayBeStatic.html
blob: 578f60b2d618ef8dfe893a2b60435419b5062589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<html>
<body>
Reports any inner classes which may safely be made <b>static</b>.
An inner class may be <b>static</b> if it doesn't reference its enclosing instance.
<p>
A <b>static</b> inner class does not keep an implicit reference to its enclosing instance.
This prevents a common cause of memory leaks and uses less memory per instance of the class.
<!-- tooltip end -->
<p>

</body>
</html>