Results 1 to 2 of 2

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

  1. #1
    Ext User
    Join Date
    Jun 2008
    Posts
    2
    Vote Rating
    0
      0  

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

    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)

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
      0  

    Default

    Change is in SVN.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •