mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
15 lines
479 B
HTML
15 lines
479 B
HTML
<html>
|
|
<body>
|
|
Reports write operations inside <code>@SafeVarargs</code> methods where vararg parameter is reassigned to something else.
|
|
In this case, newly assigned array is not related to the variable arity arguments at the call site and might not be safe anymore.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
@SafeVarargs
|
|
public final <T> void test(T[] tt, T... t) {
|
|
t = tt;
|
|
System.out.println(t[0]);
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |