Re: [picocontainer-dev] JSR330 work progress
Mark Hobson <[email protected]> Wed, 4 Aug 2010 15:11:48 +0100
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
On 4 August 2010 14:40, Paul Hammant <[email protected]> wrote: > One of the things I'm doing in place is in DefaultPicoContainer is :- > =A0=A0 =A0 =A0 =A0if (key instanceof Generic) { > =A0=A0 =A0 =A0 =A0 =A0 =A0key =3D Generic.get(((Generic) key).getType()); > =A0=A0 =A0 =A0 =A0} > This unwrapping right ? Not really, that's the equivalent of: if (key instanceof Generic) { key =3D (Generic) key; } By unwrapping I meant something like: Generic<List<String>> listStringGeneric =3D new Generic<List<String>>() {}; Type listString =3D listStringGeneric.getType(); Mark --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email