ode>
  public class Foo&lt;T&gt; {
    private List&lt;T&gt; list = new ArrayList&lt;&gt;();

    @SafeVarargs
    public final void safeVarargs(T... elements) {
      Collections.addAll(list, elements);
    }
  }
</code></pre>
<p>
  This annotation is not supported under Java 1.6 or earlier JVMs.
</p>
<!-- tooltip end -->
</body>
</html>