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

24 lines
739 B
HTML

<html>
<body>
Reports array declarations written in C-style syntax, where the array brackets
are placed after a variable name or after a method parameter list.
Most code styles prefer Java-style array declarations, where the array brackets are placed after the type name.
<p><b>Example:</b></p>
<pre><code>
<b>public</b> String process(String value[])[] {
return value;
}
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
<b>public</b> String[] process(String[] value) {
return value;
}
</code></pre>
<!-- tooltip end -->
<p>Configure the inspection:</p>
<p>
Use the <b>Ignore C-style declarations in variables</b> option to report C-style array declaration of method return types only.
<p>
</body>
</html>