Suppress generic warning

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1199718 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2011-11-09 12:43:20 +00:00
parent f1fba9e3a0
commit 40e4babd35
1 changed files with 3 additions and 1 deletions

View File

@ -89,7 +89,9 @@ public class SerializationUtils {
* it is reasonable to assume the deserialized object
* is of the same type as the original serialized object
*/
return (T) in.readObject();
@SuppressWarnings("unchecked") // see above
T readObject = (T) in.readObject();
return readObject;
} catch (ClassNotFoundException ex) {
throw new SerializationException("ClassNotFoundException while reading cloned object data", ex);