Home | History | Annotate | Download | only in source-plain
      1 package annotations.tests;
      2 
      3 import java.util.*;
      4 
      5 public class AnnotationTest<Foo extends Comparable<Integer>> {
      6     class Outer {
      7         class Inner<Baz> {
      8             int baz(Baz o) { return o.hashCode() ^ this.hashCode(); }
      9         }
     10     }
     11 
     12     Iterable<String[]> field;
     13     Outer.Inner<String> inner;
     14     Map.Entry<Integer, ? extends CharSequence> entry;
     15 
     16     <Bar extends Comparable<Integer>> HashSet<Integer>
     17         doSomething(Set<Integer> param) {
     18         HashSet<Integer> local;
     19         if (param instanceof HashSet)
     20             local = (HashSet<Integer>) param;
     21         else
     22             local = new HashSet<Integer>();
     23         return local;
     24     }
     25 }
     26