KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > java > hints > AddCast9


1 package org.netbeans.test.java.hints;
2
3 import java.util.Collection JavaDoc;
4
5 public class AddCast9 {
6     
7     public AddCast9() {
8     }
9     
10     public void getString() {
11         Collection JavaDoc<? extends XXX> x = new Y().test(XXX.class);
12     }
13     
14     private static class Y {
15         public <T> Collection JavaDoc<? extends T> test(Class JavaDoc<T> c) {}
16     }
17     
18 }
19
Popular Tags