redundant suppression: correct redundancy for tools with the same id

This commit is contained in:
anna
2011-03-18 12:48:30 +01:00
parent 001fb81dc0
commit a3aacb032c
2 changed files with 58 additions and 33 deletions
@@ -0,0 +1,19 @@
// "Remove 'unchecked' suppression" "false"
import java.util.*;
public class SampleSafeVarargs {
@SafeVarargs
static <T> List<T> asList(T... tt) {
System.out.println(tt);
return null;
}
@SuppressWarnings({"unchecked"})
void foo() {
asList(new ArrayList<String>());
List<Object> l ;
ArrayList strings = new ArrayList<String>();
l = strings;
}
}