To obtain List<String>, do
codeModel.ref(List.class).narrow(codeModel.ref(String.class))
Yogesh Dubey wrote:
> Hi Everyone,
>
> Is it possible to specify a type to a generic variable/method return type.
>
> Example,
> 1. Produce a method signature : public List<String> getAll() {}
> 2. Declare a varialbel as : List<String> values = new
> ArrayList<String>();
>
--
Kohsuke Kawaguchi
Sun Microsystems http://weblogs.java.net/blog/kohsuke/