6993978: Project Coin: Compiler support of annotation to reduce varargs warnings

Reviewed-by: jjg, darcy
This commit is contained in:
Maurizio Cimadamore 2010-12-13 15:11:00 -08:00
parent 87db401cf5
commit 6ef5228632
30 changed files with 718 additions and 300 deletions

View file

@ -22,10 +22,8 @@
*/
// key: compiler.warn.unchecked.generic.array.creation
// key: compiler.warn.varargs.non.reifiable.type
// options: -Xlint:unchecked,varargs
import java.util.*;
// key: compiler.warn.unchecked.varargs.non.reifiable.type
// options: -Xlint:unchecked
class UncheckedGenericArrayCreation<T> {
void m(T t1, T t2, T t3) {