- public static <T> T deserialize(byte[] aData, Class<T> aType) throws IOException, ClassNotFoundException {
- ByteArrayInputStream bis = new ByteArrayInputStream(aData);
- ObjectInputStream os = new ObjectInputStream(bis);
- return (T)os.readObject();
+ public static <T> T deserialize(byte[] aData, Class<T> aType)
+ throws IOException, ClassNotFoundException {
+ ByteArrayInputStream bis = new ByteArrayInputStream(aData);
+ ObjectInputStream os = new ObjectInputStream(bis);
+ return (T) os.readObject();