mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
17 lines
835 B
HTML
17 lines
835 B
HTML
<html>
|
|
<body>
|
|
Reports lambda expressions whose number of statements exceeds the specified maximum.
|
|
<p>Lambda expressions that are too long may be confusing, and it is often better to extract the statements into a separate method.<p>
|
|
<p>The following statements are not counted:</p>
|
|
<ul>
|
|
<li>empty statements (semicolons)</li>
|
|
<li>block statements</li>
|
|
<li><code>for</code> loop initialization statements, that is, <code>int i = ...</code> within a <code>for(int i = ...;...)</code>
|
|
statement</li>
|
|
<li><code>for</code> loop update statements, that is, <code>i += 2</code> within a <code>for(int i = ...;...; i += 2)</code>
|
|
statement</li>
|
|
</ul>
|
|
<!-- tooltip end -->
|
|
<p>Use the <b>Non-comment source statements limit</b> field to specify the maximum allowed number of statements in a lambda expression.<p>
|
|
</body>
|
|
</html> |