blob: ddec2dcc02cbac8f18a59f07e7b86bda284f88d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import java.util.*;
public class pr104529 {
/*
* AJDT is ignoring the @SuppressWarnings( "unchecked" ) annotation. It is giving
* me a type safety warning when I don't specify the type when declaring a generic
* even though I have the @SuppressWarnings( "unchecked" ) annotation specified.
*/
void unsuppressed() {
List<String> l = new ArrayList();
}
@SuppressWarnings("unchecked")
void suppressed() {
List<Double> l = new ArrayList();
}
}
|