Can't @Override on iface method if we're 1.5 compat.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user