You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pr104529.aj 475B

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