Can't @Override on iface method if we're 1.5 compat.

This commit is contained in:
Michael Bayne
2014-01-20 14:20:10 -08:00
parent f720f10df5
commit 65dee239c7
@@ -396,7 +396,7 @@ public abstract class ConfigRegistry
} }
protected static class DefaultSerializer implements Serializer { protected static class DefaultSerializer implements Serializer {
@Override public String serialize (String name, Object value) throws Exception { public String serialize (String name, Object value) throws Exception {
ByteArrayOutputStream out = new ByteArrayOutputStream(); ByteArrayOutputStream out = new ByteArrayOutputStream();
ObjectOutputStream oout = createObjectOutputStream(out); ObjectOutputStream oout = createObjectOutputStream(out);
oout.writeObject(value); oout.writeObject(value);
@@ -404,7 +404,7 @@ public abstract class ConfigRegistry
return StringUtil.hexlate(out.toByteArray()); return StringUtil.hexlate(out.toByteArray());
} }
@Override public Object deserialize (String value) throws Exception { public Object deserialize (String value) throws Exception {
ByteArrayInputStream bin = new ByteArrayInputStream(StringUtil.unhexlate(value)); ByteArrayInputStream bin = new ByteArrayInputStream(StringUtil.unhexlate(value));
ObjectInputStream oin = createObjectInputStream(bin); ObjectInputStream oin = createObjectInputStream(bin);
return oin.readObject(); return oin.readObject();