Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kielbus committed Jun 11, 2014
1 parent bf8ed64 commit de0d69e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -34,9 +34,9 @@ public byte[] serialize(T value) throws IOException {
} }


@Override @Override
public T deserialize(byte[] bytes) throws IOException { public T deserialize(byte[] serializedValue) throws IOException {
if (bytes.length > 0) { if (serializedValue.length > 0) {
ByteArrayInputStream bytesInputStream = new ByteArrayInputStream(bytes); ByteArrayInputStream bytesInputStream = new ByteArrayInputStream(serializedValue);
ObjectInputStream objectInputStream = new ObjectInputStream(bytesInputStream); ObjectInputStream objectInputStream = new ObjectInputStream(bytesInputStream);
Object object; Object object;
try { try {
Expand Down
Expand Up @@ -22,5 +22,5 @@ public interface SerializationHandler<T> {


public byte[] serialize(T value) throws IOException; public byte[] serialize(T value) throws IOException;


public T deserialize(byte[] bytes) throws IOException; public T deserialize(byte[] serializedValue) throws IOException;
} }

0 comments on commit de0d69e

Please sign in to comment.