Files
openide/java/java-impl/resources/inspectionDescriptions/FieldCount.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

16 lines
921 B
HTML

<html>
<body>
Reports classes whose number of fields exceeds the specified maximum.
<p>Classes with a large number of fields are often trying to do too much. Consider splitting such a class into multiple smaller classes.</p>
<!-- tooltip end -->
<p>Configure the inspection:</p>
<ul>
<li>Use the <b>Field count limit</b> field to specify the maximum allowed number of fields in a class.</li>
<li>Use the <b>Include constant fields in count</b> option to indicate whether constant fields should be counted.</li>
<li>By default only immutable <code>static final</code> objects are counted as constants. Use the <b>'static final' fields count as constant</b> option
to count any <code>static final</code> field as constant.</li>
<li>Use the <b>Include enum constants in count</b> option to specify whether <code>enum</code> constants in <code>enum</code> classes
should be counted.</li>
</ul>
</body>
</html>