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:
parent
f1fba9e3a0
commit
40e4babd35
|
@ -89,7 +89,9 @@ public class SerializationUtils {
|
||||||
* it is reasonable to assume the deserialized object
|
* it is reasonable to assume the deserialized object
|
||||||
* is of the same type as the original serialized 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) {
|
} catch (ClassNotFoundException ex) {
|
||||||
throw new SerializationException("ClassNotFoundException while reading cloned object data", ex);
|
throw new SerializationException("ClassNotFoundException while reading cloned object data", ex);
|
||||||
|
|
Loading…
Reference in New Issue