package com.github.simy4.xpath.helpers;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public final class SerializationHelper {

    @SuppressWarnings("unchecked")
    public static <T> T serializeAndDeserializeBack(T t) throws IOException, ClassNotFoundException {
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        new ObjectOutputStream(out).writeObject(t);
        ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
        return (T) new ObjectInputStream(in).readObject();
    }

    private SerializationHelper() {
    }

}

@@ -211,49 +211,290 @@
 m;%0A%0A
-public final class SerializationHelper %7B%0A
+/**%0A * Serialization and deserialization tester.%0A *%0A * @author Alex Simkin%0A */%0Apublic final class SerializationHelper %7B%0A%0A    /**%0A     * Serializes and deserializes given object back.%0A     *%0A     * @param t object to serialize and deserialize%0A     * @return deserialized copy%0A     */
 %0A   

Make checkstyle happy.