[ 
https://issues.apache.org/jira/browse/LANG-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gary D. Gregory resolved LANG-798.
----------------------------------

    Resolution: Fixed

In SVN.
                
> Use generics in SerializationUtils
> ----------------------------------
>
>                 Key: LANG-798
>                 URL: https://issues.apache.org/jira/browse/LANG-798
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
> Maven home: C:\Java\apache-maven-3.0.4\bin\..
> Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: C:\Program Files\Java\jdk1.6.0_31\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary D. Gregory
>             Fix For: 3.2
>
>
> Use generics in SerializationUtils:
> I'd like to propose the change below. This lets you get rid of type casts in 
> call sites. You'll still get a ClassCastException if you code it wrong of 
> course.
> Old: {{public static Object deserialize(InputStream inputStream)}}
> New: {{public static <T> T deserialize(InputStream inputStream)}}
> Old: {{public static Object deserialize(byte[] objectData)}}
> New: {{public static <T> T deserialize(byte[] objectData)}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to