Files
openide/java/java-impl/resources/inspectionDescriptions/PrimitiveArrayArgumentToVariableArgMethod.html
Bas Leijdekkersandintellij-monorepo-bot fdde91f28d Java: update inspection descriptions
GitOrigin-RevId: 829a5e8f0b97a4e21dbb1f7d99ba70b777d1240f
2025-04-12 16:28:13 +00:00

17 lines
570 B
HTML

<html>
<body>
Reports any calls to a variable arity method where the call has one primitive-type array in
the variable arity parameter position.
Such a primitive-array argument may be confusing, as it will be wrapped in a single-element array argument, rather than each
element being a separate argument, as may be expected.
<p><b>Example:</b></p>
<pre><code>
String.format("%s", new int[]{1, 2, 3});
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
String.format("%s", (Object) new int[]{1, 2, 3});
</code></pre>
<!-- tooltip end -->
</body>
</html>