mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
24 lines
739 B
HTML
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> |