Permalink
Browse files

Minor cleanup

  • Loading branch information...
1 parent 7fe55a6 commit 667ea907ab541980f6f7bdb3e31d138aa06ce68c @thomas-kielbus thomas-kielbus committed Jun 12, 2014
@@ -38,17 +38,17 @@ public T deserialize(byte[] serializedValue) throws IOException {
if (serializedValue.length > 0) {
ByteArrayInputStream bytesInputStream = new ByteArrayInputStream(serializedValue);
ObjectInputStream objectInputStream = new ObjectInputStream(bytesInputStream);
- Object object;
+ T result;
try {
try {
- object = objectInputStream.readObject();
+ result = (T)objectInputStream.readObject();
} catch (ClassNotFoundException e) {
throw new IOException(e);
}
} finally {
objectInputStream.close();
}
- return (T)object;
+ return result;
} else {
return null;
}

0 comments on commit 667ea90

Please sign in to comment.