PDA

View Full Version : [FIXED] Feature: Registry#get() should use Generic to make casting unneeded



tomsontom
16 Jun 2008, 10:50 PM
Currently Registry#get() is defined like this:

public static Object get(String id)

which makes the need for type-casting and if the code value restored is a e.g. a List<Object> one even has to add a @Suppress-Annotation to not get a code full of warnings. So I propose to define the method like this:

public static <X> X get(String id)

darrellmeyer
17 Jun 2008, 5:48 AM
Change is in SVN.